The present invention is directed to a topical pharmaceutical composition which comprises a compound of formula (I), such as hydroxytyrosol, or a pharmaceutically acceptable salt, solvate, prodrug or isomer thereof, and a pharmaceutically acceptable carrierwherein R1, R2 and R3 take different values, and the use of said composition as 10 medicament in the prevention of sexually transmitted diseases (STDs), such as HIV-infection.