Following the Portuguese Restoration War, sovereignty over Tangier was ceded to the Kingdom of Portugal.