Stocks shook off an early bout of unsettled trading and ended higher ahead of a heavy week of earnings from big tech companies.
Alphabet, Amazon, Apple and Facebook parent Meta are all reporting their latest results this week, as are Coca-Cola and General Motors.
The S&P 500 rose 1.2% Monday. The Nasdaq and the Dow Jones Industrial Average also rose.
Markets in Europe gained ground and U.K. government bonds rallied as Treasury chief Rishi Sunak became assured of becoming the prime minster, replacing Liz Truss, who quit last week after her tax-cutting economic package caused turmoil in financial markets.