The stock market bellwether Dow Jones industrial average reached a new high Tuesday as it neared the 22,000 mark, buoyed by the strong financial performance of some of America’s best-known corporations.

The Dow entered August coming off its best monthly performance since February, the first full month President Trump was in office, when it increased 2.54 percent. It closed Tuesday at 21,963.03 after reaching an intraday high of 21,990.96 earlier.

The tech-heavy Nasdaq exchange and the broader Standard & Poor’s 500 index have also put in strong performances in what has been a mostly positive year for Wall Street.

President Trump took to Twitter Tuesday morning to tout the gains, taking particular note of the market’s surge since his November victory.

While stocks jumped after Trump won and the Republicans claimed control of both houses of Congress, analysts said the market’s recent run probably has less to do with politics than it does the healthy performance of the nation’s public companies. If anything, Congress’s failure to repeal and replace the Affordable Care Act or the nation’s tensions with North Korea should have dampened investors’ enthusiasm, some said.

“The market hasn’t been paying attention to Washington,” said Howard Silverblatt, a senior index analyst at S&P Dow Jones Indices. “It’s paying attention to fundamentals,” such as revenue, profits and other corporate metrics.

Many of the world’s largest companies have been reporting positive quarterly financial results in recent weeks.

Earnings from jetliner manufacturer Boeing led the way, accounting for 56.5 percent of the Dow’s gain for the month of July, according to Silverblatt. Boeing’s shares rose 8 percent toward the end of the month after it reported profits that beat analysts’ expectations, and the company raised its forecasts for the year.

If the Dow “goes over 22,000, obviously it’s Boeing,” Silverblatt said.

The Dow Jones industrial average reached 20,000 for the first time ever. The Washington Post's Ylan Mui breaks down what that means for investors. (Jorge Ribas/The Washington Post)

Fast food giant McDonald’s accounted for 23 percent of the increase in July as it too reported stronger sales and profits than many analysts projected.

The highfliers offset the lackluster performance of companies like IBM and Under Armour, the latter of which announced a round of layoffs Tuesday and lowered its sales projections for the year.

Some analysts said the stock market’s performance still suggests that investors are hopeful the Trump administration will follow through on efforts to boost infrastructure spending and cut taxes. That optimism suggests a pullback is in the offing if lawmakers continue to struggle to pass legislation and economic growth remains sluggish.

“What this stock market looks like is that it’s priced for legislative perfection,” Kristina Hooper, a global market strategist at Invesco, an independent investment management firm. “And we seem to be set up for less-than-perfect legislative outcome.”