See the related link.
The Moors ruled Spain for about 700 years.
The Moors ruled parts of Spain from 711 until 1492.
Spain did.
Spain ruled Cuba for 400 years.
The Muslims, or Moors, who invaded Spain from Africa, ruled all or part of the Iberian Peninsula from 711 AD until 1492.
Spain
bourbons
Spain ruled Mexico for 300 years, from 1521 until 1821.
Yes, for 400 years by Spain.
Spain (1935-1973).
Saudi and Spain.
They had significant powers in Spain for about 300 years. They arrived in 732 and within a couple decades they ruled significant parts of it. The earlier inhabitants of Spain, led by the Visigoths, resisted the Muslims and fought back. By the middle of the eleventh century, the Visigoths controlled most of northern Spain, but the Muslims ruled most of the south. So at this stage you could not say that either side "ruled Spain": both ruled bits of it. The war continued for the next 400 years. The Visigoths gradually gained ground. The Muslims were finally expelled from Spain in 1492.