Globular Cluster M107 (also known as Messier Object 107 or NGC 6171) is a very loose globular cluster in the constellation Ophiuchus. It was discovered by Pierre Mechain in April 1782 and independently by William Herschel in 1793. It wasn't until 1947 that Helen Sawyer Hogg added it, and three other objects discovered by Mechain to the list of Messier objects.
M107 is close to the galactic plane at a distance of about 20,900 light-years from Earth. There are 25 known variable stars in this cluster.