Middleton is a town in Essex County, Massachusetts, United States. The population was 9,779 at the 2020 census.