Another surge in crude oil boosted the energy sector and led the S&P 500 and Nasdaq to secure fresh records on Monday. 

The S&P 500 was up 0.48% to 2,402.32 and the Nasdaq rose 0.46% to 6,149.67, both new all-time closing highs. The Dow Jones Industrial Average added 0.41%.

Crude oil prices rallied on Monday after energy ministers from Russia and Saudi Arabia surprised by calling for an extension to an oil production cap agreement. 

The ministers called for the current deal among the Organization of the Petroleum Exporting Countries to be extended by nine months, far longer than what analysts had hoped. Speaking in Beijing on Monday, Saudi Arabia's energy minister, Khalid al-Falih, and Russia's Alexander Novak said they wanted the current agreement to continue holding back around 1.8 million barrels of oil from the market each day until the first quarter of 2018. 

"The two ministers agreed to do whatever it takes to achieve the desired goal of stabilizing the market and reducing commercial oil inventories to their five-year average level," the ministers said in a joint statement, "as well as to underscore the determination of oil producers to ensure market stability."

An extension to the OPEC deal will be the main point of conversation when the 13 member countries meet in Vienna on May 25. The current agreement, established last November, is set to expire at the end of June.

"There seems to be a real commitment about reducing the glut from oil powerhouses that are Saudi Arabia and Russia -- the latter being the largest oil producer in the world and the former being the largest exporter," said Fawad Razaqzada, market analyst at Forex.com. "Given the backing of Russia, in my view an agreement will be made. The market clearly expects that, with oil prices making a sharp comeback."

If you liked this article you might like

Stock Futures Inch Higher as Fed Meets for Policy Decision on Balance Sheet

Caterpillar Leads Dow to Records, S&P 500 Also at All-Time Highs

S&P 500 and Dow Score Records With Wall Street Upbeat Ahead of Fed

Nvidia Inspires Chipmaker Gains but Rest of Tech Gets Left Behind

S&P 500 and Dow on Track for Records With Markets in Good Mood Ahead of Fed