BACKGROUND: Detectable Kaposi's sarcoma-associated herpesvirus (KSHV) DNA in blood and increased antibody titres may indicate KSHV reactivation, while the transmission of KSHV occurs via viral shedding in saliva. METHODS: We investigated the risk factors for KSHV DNA detection by real-time polymerase chain reaction in blood and by viral shedding in saliva, in 878 people aged 3 to 89 years of both sexes in a rural Ugandan population cohort. Helminths were detected using microscopy and the presence of malaria parasitaemia was identified using rapid diagnostic tests. Regression modelling was used for a statistical analysis. RESULTS: The KSHV viral load in blood did not correlate with the viral load in saliva, suggesting separate immunological controls within each compartment. The proportions of individuals with a detectable virus in blood were 23% among children aged 3-5 years and 22% among those 6-12 years, thereafter reducing with increasing age. The proportions of individuals with a detectable virus in saliva increased from 30% in children aged 3-5 years to 45% in those aged 6-12 years, and decreased subsequently with increasing age. Overall, 29% of males shed in saliva, compared to 19% of females (P = .008). CONCLUSIONS: Together, these data suggest that young males may be responsible for much of the onward transmission of KSHV. Individuals with a current malaria infection had higher levels of viral DNA in their blood (P = .031), compared to uninfected individuals. This suggests that malaria may lead to KSHV reactivation, thereby increasing the transmission and pathogenicity of the virus.