Chlamydia is spread through genital contact or vaginal, anal, or oral sex with someone infected. Babies can also catch it via an infected vagina as they pass through during birth.