It was the first time the Dow crossed the 27,000-point threshold and the second consecutive session where the Siamp;P burst through the 3,000-point barrier before retreating at the closing bell.
Thursday's only negative note was sounded by the Nasdaq index, comprising mainly technology stocks, which fell 6.49 points, or 0.08 per cent, to 8,196.04 points.
The strongest sectors were industry, up 0.71 per cent, and finance, with a gain of 0.60 per cent.
Shares of real estate and property firms declined 1.21 per cent.
Traders were upbeat at the opening bell based on comments Fed Chairman Jerome Powell made the previous day in testimony to the US House of Representatives Committee on Financial Services.
Market analysts interpreted Powell's remarks as a clear sign that the Federal Reserve may cut its benchmark federal-funds rate at the July 30-31 meeting of the Federal Open Market Committee, the central bank's policy-making body.
The Fed chair expressed the same sentiments in an appearance Thursday before a Senate committee.
Though encouraged by the signals from the Federal Reserve, investors remained concerned about relations between the US and China in light of a tweet from President Donald Trump expressing disappointment with Beijing's failure to boost purchases from American farmers in line with the trade truce he agreed on with Chinese President Xi Jinping during last month's G20 summit.
The Dow's top performing shares on Thursday included UnitedHealth, up 5.53 per cent; Goldman Sachs, 2.61 per cent; and 3M, which gained 2.02 per cent.
Drug-maker Merck was the session's biggest loser, falling 4.50 per cent.
In commodities trading, the US benchmark crude, West Texas Intermediate, dropped 0.38 percent to $60.20 barrel after the publication of an analysis by the Organisation of Petroleum Exporting Countries predicting lower demand for oil in 2020.