Syphilis is a sexually transmitted infection, or STI, that is caused by bacteria. It can infect the genital area, lips, mouth or anus of both men and women. It can also pass from a mother to her baby during pregnancy or birth.