The determinants of long-term smoking cessation were evaluated in 80 patients who smoked cigarettes and survived a myocardial infarction. All patients underwent a program of rehabilitation and secondary prevention including in-hospital counseling and physician-guided reinforcing sessions at 1, 3, and 6 months after discharge. At 18 months of follow-up, 53 patients (66.3%) had quit smoking. Variables associated with smoking cessation were duration of hospital stay greater than or equal to 19 days (79 vs. 48%; p less than 0.005) and peak creatine phosphokinase (CPK) elevation greater than or equal to 500 U/l (76 vs. 54%; p less than 0.05). Males tended to quit in higher proportion than females (68 vs. 44%). Age, prior myocardial infarction, other cardiovascular risk factors, infarction location, Killip class at entry, and duration of stay in coronary care unit did not significantly affect the quitting rates. Logistic regression analysis singled out the duration of hospital stay as a significant predictor of smoking cessation (p less than 0.005). Early and intensive secondary prevention during the hospital stay is crucial in promoting sustained smoking cessation after myocardial infarction.