The Canary Islands (English /kəˈnɛəri ˈaɪləndz/; Spanish: Islas Canarias [ˈizlas kaˈnaɾjas], locally: [ˈiɦlah kaˈnaɾjah]), also known as the Canaries (Spanish: Canarias), are a Spanish archipelago located just off the northwest coast of mainland Africa, 100 kilometres (62 miles) west of the border between Morocco and the Western Sahara.
In 1402, the Castilian conquest of the islands began. In 1448 Maciot de Béthencourt sold the lordship of Lanzarote to Portugal's Prince Henry the Navigator, an action that was not accepted by the natives nor by the Castilians. Despite Pope Nicholas V ruling that the Canary Islands were under Portuguese control, a crisis swelled to a revolt which lasted until 1459 with the final expulsion of the Portuguese. In 1479, Portugal and Castile signed the Treaty of Alcáçovas. The treaty settled disputes between Castile and Portugal over the control of the Atlantic, in which Castilian control of the Canary Islands was recognized but which also confirmed Portuguese possession of the Azores, Madeira, the Cape Verde islands and gave them rights to lands discovered and to be discovered...and any other island which might be found and conquered from the Canary islands beyond toward Guinea.
More information on the Wikipedia page .