Syphilis is primarily spread through sexual contact, including vaginal, anal, and oral sexual activity. It can also be transmitted from a pregnant woman to her baby during childbirth.