Herpesviruses are important pathogens in animals and humans. The large DNA genomes of several herpesviruses have been sequenced, but the function of the majority of putative genes is elusive. Determining which genes are essential for their replication is important for identifying potential chemotherapy targets, designing herpesvirus vectors, and generating attenuated vaccines. For this purpose, we recently reported that herpesvirus genomes can be maintained as infectious bacterial artificial chromosomes (BAC) in Escherichia coli. Here we describe a one-step procedure for random-insertion mutagenesis of a herpesvirus BAC using a Tn1721-based transposon system. Transposon insertion sites were determined by direct sequencing, and infectious virus was recovered by transfecting cultured cells with the mutant genomes. Lethal mutations were rescued by cotransfecting cells containing noninfectious genomes with the corresponding wild-type subgenomic fragments. We also constructed revertant genomes by allelic exchange in bacteria. These methods, which are generally applicable to any cloned herpesvirus genome, will facilitate analysis of gene function for this virus family.