These results establish BAF as a key regulator of the lifecycle of gammaherpesviruses and a potential target for treating viral infections and malignancies. This evidence concerns the gene BANF1 and viral infectious disease.