In addition to replanting the orchards and restoring the city's water supply system, Muhammad also built the current pavilion on the ruins of the old Saadian one, completed in 1870.[4]:531[12][5][4][13] (Note: a smaller number of sources[2][4] cite the earlier 18th-century Alaouite sultan Muhammad ibn Abdallah, who restored and built many other structures in Marrakesh, as the one who restored the Menara Gardens, although the pavilion's construction is precisely dated thanks to an inscription on the archway of its balcony.[3][13][4]) Up until the early 20th century the gardens were also used to raise ostriches, in line with a long tradition of sultans using wild animals to impress and entertain visitors.[7]