Up to the late 19th century and early 20th century the kasbah was still the center of power in Marrakesh. Wealthy government ministers also built their own palaces and mansions near it during this period. The most famous of these is Bahia Palace, later turned into a royal palace.[1][12] The Agdal Gardens were also maintained and were replanted in the 19th century, with new royal pavilions constructed within them and new fortifications constructed on their west side.[3][13]