A chancre is a painless ulceration that typically presents as the first clinical manifestation of primary syphilis, a sexually transmitted infection caused by the bacterium Treponema pallidum. Chancres generally appear at the site of infection, which can be the genital area, mouth, or rectum, and they usually persist for 3 to 6 weeks.