Nutritional condition and sex are known to influence efficacy and investment in immune function. A poor diet is costly to immune function because it limits the resources (e.g. protein) available to effector systems (e.g. melanotic encapsulation) whereas males and females are expected to differ in how they allocate resources to fitness-related traits. Males are expected to invest less in immunity, and more in mating, than females but this pattern could be reversed if fitness is more condition-dependent in males than females. I tested the effects of nutritional condition and sex on melanotic encapsulation rate in the Cook Strait giant weta (Deinacrida rugosa Buller 1871), an orthopteran insect exhibiting strong female-biased sexual size dimor...