Portugal established a global empire between the 15th and 16th centuries through maritime exploration, gaining control of parts of Africa, Asia, and South America. This made Portugal a major world power economically, politically, and militarily. However, as other European powers like the Dutch, English, and French engaged in spice and slave trading, Portugal's economy declined. It no longer had the resources to defend its overseas military interests. Portugal then experienced a period of military decline and became a dynastic union with Spain from 1580 to 1640, though it maintained nominal control over itself.