Battle of Alcácer Quibir
After the death of Rei Sebastian in the massive Portuguese defeat at the hands of the Moroccan Saadi Empire in the Battle of Alcácer Quibir and the ensuing crisis of succession, Casablanca came under Spanish occupation under the Iberian Union, from 1580 to 1640.