CERRO PABELLÓN, Chile — It looks and functions much like an oil drilling rig. As it happens, several of the men in thick blue overalls and white helmets who operate the hulking machine once made a living pumping crude.

But now they are surrounded by snowcapped volcanoes, laboring to breathe up here at 14,760 feet above sea level as they draw steam from the earth at South America’s first geothermal energy plant.

With the ability to power roughly 165,000 homes, the new plant is yet another step in Chile’s clean energy transformation. This nation’s rapidly expanding clean energy grid, which includes vast solar fields and wind farms, is one of the most ambitious in a region that is decisively moving beyond fossil fuels.