Ubiquitylation is a widely used post-translational protein modification that regulates many biological processes, including immune responses. The role of ubiquitin in immune regulation was originally uncovered through studies of antigen presentation and the nuclear factor-κB family of transcription factors, which orchestrate host defence against microorganisms. Recent studies have revealed crucial roles of ubiquitylation in many aspects of the immune system, including innate and adaptive immunity and antimicrobial autophagy. In addition, mounting evidence indicates that microbial pathogens exploit the ubiquitin pathway to evade the host immune system. Here, we review recent advances on the role of ubiquitylation in host defence and pathogen evasion.