 In 1997, the Petroleum Investment Law was adopted, establishing a legal and regulatory framework, and liberalizing oil production.It created the CNPE and the ANP, increased use of natural gas, increased competition in the energy market, and increased investment in power generation.The state monopoly on oil and gas exploration ended, and energy subsidies were reduced.