County of Hainaut
In the 12th century the region of Bavay became part of the County of Hainaut and the city was the capital of a "Prévôt".