Galectins, which were first characterized in the mid-1970s, were assigned a role in the recognition of endogenous ('self') carbohydrate ligands in embryogenesis, development and immune regulation. Recently, however, galectins have been shown to bind glycans on the surface of potentially pathogenic microorganisms, and function as recognition and effector factors in innate immunity. Some parasites subvert the recognition roles of the vector or host galectins to ensure successful attachment or invasion. This Review discusses the role of galectins in microbial infection, with particular emphasis on adaptations of pathogens to evasion or subversion of host galectin-mediated immune responses.