The Organization of the Petroleum Exporting Countries, Russia and other countries reached a tentative agreement on Thursday to temporarily cut production.

OPEC and the other oil-producing countries agreed to cut 10 million barrels a day — about 23 percent of their production levels — in May and June, they said in a statement on Friday. Possible further trims could come from a meeting of the Group of 20 nations on Friday.

Negotiations hit a snag late Thursday over Mexico’s reluctance to cut its share of oil, reportedly 400,000 barrels a day, leaving the deal in limbo. In the statement, the group said the deal was conditional on Mexico’s consent.

Even before that happened, oil prices fell because analysts and traders had hoped for a bigger reduction to prevent the buildup of a glut of oil. On Thursday afternoon, the West Texas Intermediate crude future contract, the American benchmark, was down more than 7 percent to $23.28 a barrel.