Rubuta ci gaba don wannan sakin layi - Rikicin maye gurbin 1580, ya fara shekaru sittin na sarauta biyu a Fotigal da Spain a ƙarƙashin Habsburgs na Spain. Ana kiran wannan da "Dominion Filipino" ("Domínio Filipino"), tunda duk sarakunan Spain uku a wannan lokacin ana kiransu Philip ("Filipe"). A shekara ta 1589, rundunar jiragen ruwa na Ingila sun kai wa birnin Lisbon hari
jagorancin Francis Drake, yayin da Sarauniya Elizabeth ta goyi bayan dan wasan Portugal a Antonio, Prior na Crato, amma goyon baya ga Crato ya rasa kuma aikin ya kasa. Yaƙin Maido da Fotigal, wanda ya fara da juyin mulkin da masarauta da bourgeoisie suka shirya a Lisbon kuma aka aiwatar da shi a ranar 1 ga Disamba, 1640, ya maido da 'yancin kai na Fotigal. Lokacin daga 1640 zuwa 1668 ya kasance da rikice-rikice na lokaci-lokaci tsakanin Portugal da Spain, da kuma gajeren lokaci na yaƙe-yaƙe mafi tsanani har sai an sanya hannu kan Yarjejeniyar Lisbon a 1668.