NEW YORK
Dollar General surged 12 percent after offering $9.7 billion for Family Dollar, which rallied 4.9 percent. Southwest Airlines and Delta Air Lines led gains among industrial companies as oil prices fell. Homebuilders rose as confidence in the industry climbed to the highest level in seven months. Internet and biotechnology stocks rallied, continuing to pare losses from earlier this year.
The S&P 500 rose 0.9 percent to 1,971.74, within 0.8 percent of an all-time high. The Dow Jones Industrial Average gained 175.83 points, or 1.1 percent, to 16,838.74. The Nasdaq Composite Index jumped 1 percent to the highest level since 2000.
"People that were concerned about the possibility of a serious deterioration of the Russia-Ukraine situation and had no idea what was going to happen over the weekend came in this morning with a different perspective," said Marshall Front, chief investment officer at Chicago-based Front Barnett Associates. His firm manages $800 million. "The market opened up higher and we've been creeping up since then with some positive housing sentiment figures."
Ukrainian Foreign Minister Pavlo Klimkin met his Russian counterpart Sergei Lavrov for more than five hours of talks in Berlin, as they sought to ease tension after officials in Kiev said troops had partially destroyed an armed convoy from Russia.
In Iraq, Iraqi and Kurdish forces retook control of the Mosul Dam, Iraqiya television reported. The U.S. widened its airstrikes in Iraq at the weekend to help secure the dam near Mosul, Iraq's largest northern city, after it was seized by Islamist militants.
Israel and Hamas agreed to extend their truce, media on both sides of the conflict reported, providing more time for negotiations on a long-term accord to end violence that has devastated Gaza.
The S&P 500 fell as much as 3.9 percent from a record reached on July 24 amid growing concern over global conflicts from Ukraine to Gaza and Iraq. The benchmark index gained 1.2 percent last week as signs of a slowing economy stoked bets central banks will leave interest rates near record lows for longer.