Metformin hydrochloride is a medication primarily used to treat type 2 diabetes. It works by reducing the production of glucose in the liver and enhancing the body's sensitivity to insulin, which helps lower blood sugar levels. Administered orally in tablet form, it is typically started at a low dose and gradually increased as needed.