Personalities from the entertainment world and international diplomats pressured the Legislative Assembly to pass a law that would permanently ban the exploitation of fossil fuels in Costa Rica.
The electric train was a main campaign promise for Alvarado, who was elected as president of Costa Rica in 2018.
Costa Rica on Monday introduced the new self-propelled diesel train carriages on passenger routes across the Greater Metropolitan Area.
The International Monetary Fund (IMF) on Monday approved a three-year, $1.78 billion loan to help stabilize Costa Rica's economy.
The cashless system will make Costa Rica public transit more efficient, as well as improving sanitary conditions.
Some 60% of Costa Rica's population lives in the GAM, which constitutes only 4% of the national territory.
António Guterres, Secretary-General of the United Nations, commended Costa Rica for its ongoing decarbonization efforts.