Zocor is used to lower cholesterol and triglycerides (types of fat) in the blood. Zocor is also used to lower the risk of stroke, heart attack, and other heart complications in people with diabetes, coronary heart disease, or other risk factors.