Wrong history book.. they didn't gain independence from Spain. Ruled by Portugal till 1975.. although technically speaking, Portugal was under Spain rule for a few years, but that ended in 1640. So I guess cape Verde was as well. But Portuguese was the main language