Interestingly, STDs weren’t a problem until the late Middle Ages.
I think STDs have always been a problem
https://ib531riseinstds.weebly.com/history-of-stds.html