Metformin primarily reduces the amount of glucose produced by the liver and improves insulin sensitivity. It helps stabilize blood sugar levels, reducing the risk of complications associated with high blood sugar.