In 1478 (during the War of the Castilian Succession), near the coast at Elmina was fought a large battle between a Castilian armada of 35 caravels and a Portuguese fleet for hegemony of the Guinea trade (gold, slaves, ivory and melegueta pepper). The war ended with a Portuguese naval victory followed by the official recognition by the Catholic Monarchs of Portuguese sovereignty over most of the disputed West African territories embodied in the Treaty of Alcáçovas, 1479. This was the first colonial war among European powers.