The possibility that Donald Trump would become president of the United States was never a big selling point in Mexico’s ambitious plan to privatize its energy sector by attracting U.S. investment. But energy lawyers say that even an anti-Mexico Trump administration could not seriously slow the billions of dollars already crossing the border for long-term capital projects.

Sweeping changes to the legal regime surrounding energy already have lured billions in foreign investment in power projects, pipelines, a competitive new power market, and exploration in the Gulf of Mexico. And it’s no wonder. The reforms heralded the reopening of the Mexican energy sector to investors for the first time since the 1930s. Big-firm energy lawyers at the center of the activity see huge opportunities ahead in Mexico for the next decade and beyond, as they work on deals related to all facets of the energy sector.