===Modern Age===During the revolt of the Comuneros, led by Juan de Padilla, Madrid joined the revolt against Emperor Charles V of Germany and I of Spain, but after defeat at the Battle of Villalar, Madrid was besieged and occupied by the royal troops.
Mesto je bilo uspešno in je dobilo naziv "Villa", katerega upravno okrožje se je razširilo iz Jarama na vzhodu do reke Guadarrame na zahodu.