Metformin is a prescription drug used primarily in the treatment of type II diabetes.