Viruses have traditionally been thought of as pathogens, but many confer a benefit to their hosts and some are essential for the host life cycle. In this Review, Marilyn Roossinck describes beneficial viruses that are found in a range of hosts, including bacteria, insects, plants and animals.