OPEC and allies led by Russia agreed on Sunday to a record cut in output to prop up oil prices amid the coronavirus pandemic and said they had an unprecedented deal with fellow oil nations, including the United States, to curb global oil supply by 20%.

Measures to slow the spread of the coronavirus have destroyed demand for fuel and driven down oil prices, straining budgets of oil producers and hammering the U.S. shale industry, which is more vulnerable to low prices due to its higher costs.

The group, known as OPEC+, said it had agreed to reduce output by 9.7 million barrels per day (bpd) for May and June, after four days of talks and following pressure from U.S. President Donald Trump to arrest the price decline.

The biggest oil cut ever is more than four times deeper than the previous record cut in 2008. Producers will slowly relax curbs after June, although reductions in production will stay in place until April 2022.

“The big Oil Deal with OPEC+ is done. This will save hundreds of thousands of energy jobs in the United States,” Trump wrote on Twitter, thanking Russian President Vladimir Putin and Saudi King Salman for pushing the deal through. “I just spoke to them... Great deal for all,” Trump said.

Oil demand has dropped by around a third because of the coronavirus pandemic. Brent oil prices opened slightly down at around $31.30 per barrel on Sunday, less than half of their levels at the start of the year.

Total global cuts will include contributions from non-members, steeper voluntary cuts by some OPEC+ members and strategic stocks purchases by the world’s largest consumers.

The OPEC+ deal had been delayed since Thursday, however, after Mexico, worried about derailing its plans to revive heavily indebted state oil company Pemex, balked at the production cuts it was asked to make.

Mexican President Andres Manuel Lopez Obrador said on Friday that Trump had offered to make extra U.S. cuts on his behalf, an unusual offer by the U.S. leader, who has long railed against OPEC.

Trump said Washington would help Mexico by picking up “some of the slack” and being reimbursed later. He did not say how that would work.

Global oil demand is estimated to have fallen by around 30 million bpd as more than 3 billion people are locked down in their homes due to the outbreak.