Sexually transmitted infections (STIs) may cause substantial individual suffering and a large economic burden for society. This study examined the seroprevalence of Chlamydia trachomatis, Mycoplasma genitalium, herpes simplex virus (HSV) types 1 and 2, and several human papillomaviruses (HPV) in the Swedish population over time. The study population consisted of 30-year-old women attending maternity care, and 50year-old men and women attending health check-ups, from 1975 to 2018. Antibody status was determined by multiplex serology and quantified using median reporter fluorescence intensity (MFI). A total of 891 samples were analysed (519 from 30-year-old women, 186 from 50year-old women and 186 from 50year-old men). Of these, 41.5% showed seropositivity for Chlamydia trachomatis, 16.7% for Mycoplasma genitalium, 70.5% for HSV-1, 14.9% for HSV-2, 13.2% for high-risk HPV, and 8.3% for low-risk HPV. Seropositivity for Mycoplasma genitalium, HSV-1 and especially Chlamydia trachomatis decreased over time. There was a decrease over time in Chlamydia trachomatis seroprevalence, probably due to contact tracing, testing and early treatment; this might also have affected Mycoplasma genitalium seroprevalence. Despite the reduction, seroprevalences are still high, so continued and new efforts to reduce STI incidence are essential.