Biotrophic fungal plant pathogens establish an intimate relationship with their host to support the infection process. Central to this strategy is the secretion of a range of protein effectors that enable the pathogen to evade plant immune defences and modulate host metabolism to meet its needs. In this Review, using the smut fungus Ustilago maydis as an example, we discuss new insights into the effector repertoire of smut fungi that have been gained from comparative genomics and discuss the molecular mechanisms by which U. maydis effectors change processes in the plant host. Finally, we examine how the expression of effector genes and effector secretion are coordinated with fungal development in the host.