An organism's fitness is critically reliant on its immune system to provide protection against parasites and pathogens. The structure of even simple immune systems is surprisingly complex and clearly will have been moulded by the organism's ecology. The aim of this review and the theme issue is to e...