Groton is a town in northwestern Middlesex County, Massachusetts, United States, within the Greater Boston metropolitan area. The population was 10,873 at the 2012 town census. It is home to two prep schools: Groton School, founded in 1884, and Lawrence Academy at Groton, founded in 1792 and the third-oldest private school in Massachusetts. Lawrence Academy was founded with a charter from John Hancock.
Near the former border with Maine, the historic town was a battlefield in King Philip's War and Queen Anne's War, with children taken captive in a raid by Abenaki and French; it had had incidents of insurrection during Shays' Rebellion, and was the birthplace of William Prescott, who commanded the colonial forces at the Battle of Bunker Hill during the American Revolution.