Large numbers of African slaves were imported to work the coffee and sugar plantations , and Havana became the launching point for the annual treasure fleets bound for Spain from Mexico and Peru .