Syphilis is an infection caused by the Treponema pallidum bacteria. The bacteria most often spread through sexual contact with an infected partner. Syphilis can also spread from an infected mother to her child during pregnancy or childbirth.