Groton is a town located in northwestern Middlesex County, Massachusetts. The population of Groton was 9,547 at the 2000 census. It is home to two notable prep schools: Groton School, founded in 1884, and Lawrence Academy at Groton, founded in 1793. The town hosts the National Shepley Hill Horse Trials, an equestrian competition.