A gato is someone from Madrid whose parents and grandparents also came from the city. Because of the high rate of immigration to the capital from other regions of Spain, true gatos are very rare nowadays, but where did Madrileños get their feline nickname in the first place?
A Climbing Soldier
Madrid was founded in the 9th century by the Moorish leader Muhammad I of Córdoba, who named the city Mayrit and built a huge, protective wall around it to keep out invaders. Several armies had tried to get past the wall, but to no avail, until in 1085 Alfonso VI, King of Castile, led his troops to encircle the city.
At dawn, one soldier broke from the others and began to climb the city wall. He climbed in such a fast and agile way that King Alfonso, astounded, said he resembled a cat. When the solider reached the top of the wall, he replaced the Moorish flag with the Christian flag.
The Christian troops were finally able to conquer the city and the young solder became a hero. It is said he changed his surname to ‘gato’ and his descendants added a dagger and a wall to their coat of arms in memory of their illustrious ancestor.
The term cat (gato) was first used to refer to someone brave from Madrid, but over the years it became the nickname for anyone born in the city.
Another, perhaps less exciting theory, is that during the time of Christian rule in the Middle Ages, people had to pay a tax to enter the city gates. To avoid paying the charge, many people would climb the wall, like cats.