Metformin is the main first-line medication for the treatment of type 2 diabetes, particularly in people who are overweight. It is also used in the treatment of polycystic ovary syndrome. It is sometimes used as an off-label adjunct to lessen the risk of metabolic syndrome in people who take antipsychotics.