Many groups tried to invade Spain though. The first group to invade Spain were the Celtas. The Celtas were from present day France. The Celtas controlled Northern Spain and the Iberos controlled the Southern part of Spain. Later, the Celtas and the Iberos formed the Celtiberos and they officialy inhabited Spain.
In 1554 Felipe II marries Mary Tudor of England in an attempt to create an international Catholic alliance. A male heir from this marriage would have become King of England, however, there was no son and the protestant Elizabeth I came to power in England. In 1588 Spain's Armada is defeated by England.
War of Spanish Succession pitted royal families and their nations against each other to see who would rule Spain. War ends in 1713, with Spain losing Gibraltar to the English. Felipe V, the Bourbon grandson of Louis XIV, becomes king of Spain. The Bourbon family remains the royal family of Spain today.
Unable to put stop to the political tension and low morale of the country, Alfonso XII allows a military general to establish a dictatorship from 1923-1931. The dictatorship is unable to solve the problems of the country. In 1931, elections are held to determine if Spain should continue a monarchy or give democracy another try.