STD history was associated with socioeconomic status and sexual risk behaviors. The results suggested that HIV prevention intervention programs need to educate MSM to reduce the number of sexual partners and to use a condom properly. Furthermore, HIV prevention intervention programs among MSM need to be tailored to meet the needs of different socioeconomic groups of MSM.