Encircling her were the thirty-five acres of Alhambra. The network of grand palaces was built over one hundred years by Moorish rulers before becoming the royal residence of the Spanish Crown in 1492. The Patio of the Gilded Room is an example of the lavish architecture at Alhambra. The palace was built for Muhammed V to celebrate his major victory over the Kingdom of Castile during the Siege of Algeciras in 1369.