Metformin works by decreasing glucose production in the liver, increasing insulin sensitivity, and improving glucose uptake by tissues. These mechanisms make it effective not only for diabetes but also for conditions like Polycystic Ovary Syndrome (PCOS).