Syphilis is a sexually transmitted infection caused by the spirochete bacterium Treponema pallidum subspecies pallidum. The primary route of transmission is through sexual contact; it may also be transmitted from mother to fetus during pregnancy or at birth, resulting in congenital syphilis.