Statins are a class of medications primarily used to lower cholesterol levels in the blood. They work by inhibiting the enzyme HMG-CoA reductase, which is responsible for the production of cholesterol in the liver, effectively reducing the overall amount of cholesterol circulating in the body.