The European Union has agreed to impose emergency measures to charge energy firms on their record profits.
Ministers have agreed windfall taxes on certain energy companies as well as mandatory cuts in electricity use.
The plan includes a levy on fossil fuel firms' surplus profits and a levy on excess revenues made from surging electricity costs.
The cash raised is expected to go to families and businesses.
But the bloc is divided on whether and how to cap the wholesale price of gas.
It comes as Europe braces itself for a difficult winter due to the cost of living crisis and squeeze on global energy supplies.
What is the windfall tax on oil and gas companies?
Germany vows €65bn package to combat energy crisis
The bloc is largely trying to wean itself off Russia energy but it has left it scrambling for other alternative, expensive, sources.
A windfall tax is imposed by a government on a company to target firms that were lucky enough to benefit from something they were not responsible for - in other words, a windfall profit.
Energy firms are getting much more money for their oil and gas than they were last year, partly because demand has increased as the world emerges from the pandemic and more recently because of supply concerns due to Russia's invasion of Ukraine.
EU ministers estimate that they can raise €140bn (£123bn) from the levies on non-gas electricity producers and suppliers that are making larger-than-usual profits from the current demand.
Earlier this week, 15 member states, including France and Italy, asked the EU to impose a price cap on gas bills to slow the soaring costs.
A decision has not yet been announced on a price cap.
"There is big disappointment that in the proposal that is on the table there is nothing about gas prices," Polish climate minister Anna Moskwa said.
Ms Moskwa said a maximum price for gas would be supported by the majority of European countries and "cannot be ignored".
In the UK, former Chancellor Rishi Sunak introduced a similar tax to Friday's EU agreement in May, which he called the Energy Profits Levy.
It was applied to profits made by companies from extracting UK oil and gas, but not those that generate electricity from sources such as nuclear or wind power.