Newmarket is a town in Rockingham County, New Hampshire, United States.The densely settled center of town, where 5,797 people resided at the 2020 census, is defined as the Newmarket census-designated place.