Genital ulcers are sorted by whether the ulcer hurts and what the lymph nodes do.
Genital herpes, usually HSV-2, causes multiple painful ulcers, worst in the first attack. Primary syphilis, from Treponema pallidum, causes a painless chancre after 9–90 days. Chancroid (Haemophilus ducreyi) causes painful, ragged ulcers with unilateral painful inguinal nodes. Lymphogranuloma venereum, caused by Chlamydia trachomatis, starts with a painless ulcer, then painful nodes and proctocolitis, and is treated with doxycycline. Other causes include granuloma inguinale, Behçet's disease and carcinoma.