Chlamydia is a bacterial infection. The bacteria are usually spread through sex or contact with infected genital fluids (semen or vaginal fluid). You can get chlamydia through: unprotected vaginal, anal or oral sex. sharing sex toys that are not washed or covered with a new condom each time they're used.