The story
For centuries, goat's rue, also called French lilac, was used in Europe as a folk remedy for symptoms that we now link to diabetes. In the early twentieth century, chemists found that the plant contains guanidine-type compounds that lower blood sugar, but they were too toxic to use.
Metformin, two guanidine units joined together, was first made in 1922. The French physician Jean Sterne tested it in patients in the 1950s and published his results in 1957. It came into use in Europe soon after, but approval in the United States came much later, in 1994.
More than sixty years on, scientists still debate exactly how it works. It reduces the amount of glucose the liver releases, and it is thought to act in part on the cell's energy sensors and mitochondria, but the full picture is not settled.
Because it is cheap and well studied, it is the usual first medicine for type 2 diabetes in most guidelines, and it appears on the World Health Organization's list of essential medicines.
What to look for in the 3D view
It is small and almost flat. Count the nitrogen atoms, in blue. There are five, and nearly every one can hold a hydrogen. That is why the polar surface area is high for such a tiny molecule.