Smoking of crack cocaine was found to be an independent risk factor for HIV seroconversion among people who were injection drug users.