Candida albicans is a common fungal pathogen of humans that colonizes the skin and mucosal surfaces of most healthy individuals. Until recently, little was known about the mechanisms by which mucosal antifungal defences tolerate colonizing C. albicans but react strongly when hyphae of the same microorganism attempt to invade tissue. In this Review, we describe the properties of yeast cells and hyphae that are relevant to their interaction with the host, and the immunological mechanisms that differentially recognize colonizing versus invading C. albicans.