Somerville is a city in Middlesex County, Massachusetts, United States, located two miles northwest of Boston. Somerville was established as a town in 1842, when it was separated from Charlestown. In 2006, the town was named the best run city in Massachusetts by the Boston Globe. In 1972, in 2009, and again in 2015, the city received the All-America City Award.