Chlamydia is primarily transmitted through sexual contact, including vaginal, anal, and oral sex. It can also be transmitted from an infected mother to her baby during childbirth, potentially causing neonatal conjunctivitis or pneumonia in the newborn.