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