A nutritional hypothesis for the occurrence of the periparturient relaxation of immunity (PPRI) to gastrointestinal nematodes was tested within the bounds of a nutrient partitioning framework. It was hypothesized that at times of a scarce supply of metabolizable protein (MP), an increase in MP supply or a reduction in MP demand (having singles instead of twins) should lower the extent of PPRI in sheep. Twenty-one single- and 21 twin-bearing and -rearing Finn-Dorset ewes, 2 to 7 years old, and repeatedly infected with Teladorsagia circumcincta, were given one of three pelleted foods (no. = 7). The foods were formulated to supply 0·8 (L), 1·0 (M) and 1·2 (H) times the MP requirements during lactation, and were offered ad libitum from d–21 to d35 (d0 is day of parturition). Faecal egg counts (FEC) were assessed twice weekly as an indicator for host resistance. Dry-matter intake (DMI) during late pregnancy was higher than expected, and MP supply did not limit performance at this stage. In accordance with the hypothesis, there were no indications of a breakdown of immunity to T. circumcincta during late pregnancy. DMI during lactation did not differ between the single- and twin-rearing ewes. Calculated milk production was lower for the L than for the M and H ewes, especially for the twin-rearing ewes. A temporarily elevated FEC was observed during the first few days in lactation, which was probably mainly due to changes in faecal output rather than to PPRI. The FEC returned to low, late pregnancy levels at d12 and remained low for the single- but not for the twin-rearing ewes (P < 0·001). Overall, the L ewes had higher FEC than the M and H ewes from d19 onwards; this effect was more pronounced for the twin- than for the single-rearing ewes. It was postulated that DMI achieved overcame MP scarcity and thus prevented breakdown in immunity in the single-rearing ewes. The data support the view that, at times of MP scarcity, an increase in MP supply and reduction in MP demand can lower the extent of the breakdown in immunity towards T. circumcincta.