Since its independence in 1821, Costa Rica had found no regular trade routes for its coffee in European markets. This was compounded by transportation problems. The coffee-growing areas were located in the central part of the country and it was impossible, because of the mountains and the rainy forest, to send the coffee to the Caribbean Sea and therefore to the Atlantic. It was much easier to ship the coffee to a Pacific port, Puntarenas, and to sail around Cape Horn to the Atlantic. The Caribbean railway from San José to the Caribbean port called Puerto Limón were not built until 1888.