The argument that immigration threatens the welfare state has emerged partly because countries with generous welfare states have traditionally been viewed as more ethnically homogenous than countries with weak welfare states.