It has belonged to Spain since 1580. That’s one century after the Spanish kingdoms unification and four centuries before Morocco existed as an independent state.