Saint Peter’s Fortress was built on St. Peter’s Mount in the early 18th century. It’s initial purpose was military, allowing the people of Maastricht to defend the city from the French. While successful for a long time, the city had to surrender in the end.
https://www.holland.com/global/tourism/destinations/maastricht/fort-st-pieter.htm