On February 18, 2020, a group of nine girls from the provinces of Sucumbíos and Orellana filed a constitutional injunction (acción de protección) against the government of Ecuador. In their lawsuit, plaintiffs claimed that gas flaring is unlawful, although it can be authorised by exception, and that despite this, the State has made it a common practice, which constitutes a violation of the rights to health, water and food sovereignty, the right to a healthy environment and, the rights of Nature. They furthermore argued that pollution of gas flaring causes serious impacts on the environment and on people's health, damage to biodiversity and the cycles of nature, and contributes to climate change. Plaintiffs requested, inter alia, the annulment of all gas flaring authorizations, the immediate elimination of all flaring towers located in various areas of the Amazon where there is oil activity, and the prohibition of new oil-related flares in the region.
On May 7, 2020, the Court of first instance dismissed the constitutional action due to lack of evidence that justifies the alleged constitutional rights violation. As a response, plaintiffs filed an appeal before the Provincial Court of Justice of Sucumbíos.
On July 29, 2021, the Provincial Court of Justice of Sucumbío accepted the appeal and declared that "the Ecuadorian State has ignored the right of the plaintiffs to live in a healthy and ecologically balanced environment and their right to health by promoting polluting activities, and by refusing to use environmentally clean and energy-efficient technologies." The Court indicated that the authorizations for gas flaring, as an activity associated with hydrocarbon production carried out by the Ecuadorian State, disregards various international commitments made by Ecuador in environmental matters, among the most important: Ecuador's Nationally Determined Contributions, carried out during the COP 21 to the United Nations Framework Convention on Climate Change. As a result, the Court ordered to update the plan for the gradual and progressive elimination of the gas flares, with those located in places close to the populated centers being the first to be removed, for which a period of 18 months is granted; with respect to the other gas flares, they should proceed to their progressive elimination until December 2030. In addition, the Ministry of Energy and Non-Renewable Natural Resources may grant authorizations for new clean technologies located away from populated centers.