Mayville is a city in Dodge County, Wisconsin, United States, located along the Rock River and the Horicon Marsh. The population was 5,196 at the 2020 census.