Release of herpes simplex virus type 1 (HSV-1) nucleocapsids from the host nucleus relies on the nuclear egress complex consisting of the two essential proteins pUL34 and pUL31. The cytoplasmically exposed N-terminal region of pUL34 interacts with pUL31, while a hydrophobic region followed by a short luminal part mediates membrane association. Based on its domain organization, pUL34 was postulated to be a tail-anchor (TA) protein. We performed a coupled in vitro transcription/translation assay to show that membrane insertion of pUL34 occurs post-translationally. Transient transfection and localization experiments in mammalian cells were combined with HSV-1 bacterial artificial chromosome mutagenesis to reveal the functional properties of the essential pUL34 TA. Our data show that a minimal tail length of 15 residues is sufficient for nuclear envelope targeting and pUL34 function. Permutations of the pUL34 TA with orthologous regions of human cytomegalovirus pUL50 or Epstein Barr virus pBFRF1 as well as the heterologous HSV-1 TA proteins pUL56 or pUS9 or the cellular TA proteins BcI-2 and Vamp2 revealed that nuclear egress tolerates TAs varying in sequence and hydrophobicity, while a non-alpha-helical membrane anchor failed to complement the pUL34 function. In conclusion, this study provides the first mechanistic insights into the particular role of the TA of pUL34 in membrane curving and capsid egress from the host nucleus.