Chancroid is a bacterial infection that is spread by sexual contact with an infected person. Although not having sex is the only sure prevention, safe sex practices are helpful for preventing the spread of chancroid.
Having sexual relations with only one partner who you know to be disease-free is the safest and most practical "safe sex" method. Condoms provide very good protection from the spread of most sexually transmitted diseases when used properly and consistently.
Annan NT, Lewis DA. Treatment of chancroid in resource-poor countries. Expert Rev Anti Infect Ther. 2005 Apr;3(2):295-306.
Lewis DA. Chancroid: clinical manifestations, diagnosis, and management. Sex Transm Infect. 2003 Feb;79(1):68-71.