Chlamydia trachomatis is primarily transmitted through sexual contact, including vaginal, anal, and oral sex. It can also be passed from an infected mother to her baby during childbirth, resulting in neonatal conjunctivitis or pneumonia. The use of barrier methods, such as condoms, can significantly reduce the risk of transmission.