This article analyses the relationship between law and class formation through the case of migrant care and domestic work, and puts sociological class theory into conversation with critical migration research. It contributes to class theory by analysing how law helps produce class relations in the Finnish context. The Finnish state channels migrants into cleaning and domestic work through policy measures, and migration law ties them to the reproductive sector, making law a central social relation that defines migrants’ relation to production. The analysis draws on interviews with migrant care and domestic workers (N = 30) holding temporary work permits and examines their structural and affective descriptions of a position restricted by law. The article argues that the way migrant domestic work is formalised in the legislation produces a class relation for migrants, in which they lack full ownership over their labour power. The findings demonstrate how migrant domestic workers express gratitude for their employment despite experiencing it as devalued, indicating labour as repayment of the ‘gift’ of the residence permit.