El Cid) seized the city on 24 June, at night. The area was repopulated with people from the North (Castilians from the mountains and Merindades, Basques and Navarreses mainly). Alfonso VII granted Guadalajara its first fuero on 3 May 1133. This charter progressively incorporated several amendments. The second fuero, probably conceived during the reign of Alfonso VIII, was anyway confirmed by Ferdinand III on 26 May 1219 and 13 April 1251. For most of its history, up until the 20th century, Guadalajara's water supply came from two sources: the Henares river and the springs located along the cornice formed by the border of the limestone moors of La Alcarria. Control over the scarce water resources was fought over and it became a symbol of social status for the local nobility during the Late Middle Ages. During the reign of Alfonso X of Castile, the protection of the king allowed the city to develop its economy by protecting merchants and allowing markets. Rule of the Mendozas Traditionally a town, with a vote in the Cortes of Castile, the town became under the influence of the powerful Mendoza family until well into the Early Modern period. Despite the former meddling that underpinned the political control of the city, Guadalajara was not enshrined as formal seigneurial jurisdiction of the Mendozas in a legal sense. The family included Íñigo López de Mendoza, also known as Marqués de Santillana (1398–1458), and Pedro González de Mendoza (1428–1495), Great Cardinal of Spain and adviser of the Catholic Monarchs. The Mendoza family held the title of Dukes and Duchesses of El Infantado from 1475. On 25 March 1460, Henry IV granted Guadalajara the status of 'City'. In this period, the Mendoza Family ordered the building of El Palacio del Infantado as their main residence. It was completed in the early 1480s and it is considered by many the oldest surviving building built in a pure Renaissance style outside Italy. The city's economy prospered thanks to the development of a specialised artisanate and a bustling trade. In the early 16th century, the city was one of the main focal points of the iluminismo (or alumbrados) in the Kingdom of Toledo, linked to heterodox religious figures such as Isabel de la Cruz and María de Cazalla. In the context of the Revolt of the Comuneros across the Crown of Castile, the comunero rebels in Guadalajara, as early as 5 June