Diseases which are transmitted from an infected person to a healthy person due to unsafe sex are called sexually transmitted diseases.
Two examples: Bacterial disease: Gonorrhoea and syphilis
Viral disease: Warts and AIDS
Preventive measures: Use of condoms or similar coverings.