Though a city of Spain, the coat of arms of Ceuta is nearly identical to the coat of arms of Portugal, since that city was conquered by King John I of Portugal on 21 August 1415. The city chose to join Spain when Portugal again became independent at the end of the Iberian Union, a period in which all the Iberian crowns were held by the same royal house, in 1640.