Herpesviruses replicate their DNA and package this DNA into capsids in the nucleus. These capsids then face substantial obstacles to their release from cells. Unlike other DNA viruses, herpesviruses do not depend on disruption of nuclear and cytoplasmic membranes for their release. Enveloped particles are formed by budding through inner nuclear membranes, and then these perinuclear enveloped particles fuse with outer nuclear membranes. Unenveloped capsids in the cytoplasm are decorated with tegument proteins and then undergo secondary envelopment by budding into trans-Golgi network membranes, producing infectious particles that are released. In this Review, we describe the remodelling of host membranes that facilitates herpesvirus egress.