The Dow Jones industrial average crossed the 20,000 mark for the first time Wednesday, the latest milestone in a record-setting drive for the stock market.

Strong earnings from Boeing and other big companies helped push the Dow past the threshold early on Wednesday. U.S. stocks closed solidly higher, lifting the Standard & Poor's 500 index and Nasdaq composite to record highs of their own for the second day in a row.

Banks and other financial companies led the gainers, which included technology and industrials. Real estate, phone companies and other high-dividend stocks lagged the broader market as bond yields rose.

“It's a psychological event to get through that big hurdle, that big round number,” said Jeff Kravetz, regional investment strategist at U.S. Bank's Private Client Reserve. “It's really symbolic of what's going on with investor sentiment becoming much more positive, and that's going to drive stock prices higher.”

The Dow, which tracks 30 major industrial companies, gained 155.80 points, or 0.8 percent, to 20,068.51. The S&P 500 index rose 18.30 points, or 0.8 percent, to 2,298.37. The Nasdaq added 55.38 points, or 1 percent, to 5,656.34.

Small-company stocks also rose.

The Russell 2000 picked up 13.23 points, or 1 percent, to 1,382.44.

The market has been marching steadily higher since bottoming out in March 2009 in the aftermath of the financial crisis.

The rally continued after the election of Donald Trump as president in November. The Dow first closed above 10,000 on March 29, 1999.

Wednesday's rally came against a backdrop of optimism on Wall Street that executive actions and policy goals announced by the Trump administration this week on trade, manufacturing and business deregulation will be good for corporate America.

“Whether it's tax reform or infrastructure spending, any of those tend to be optimistic conversations for the markets currently,” said Darrell Cronk, president of Wells Fargo Investment Institute. “We have to wait and see how they play out, obviously.”

Most professional investors are skeptical the Dow at 20,000 will have much effect on the market. They more often look to the S&P 500 index as a benchmark, because they consider it a better representation of the broad market.

This is expected to be the busiest week for corporate earnings news, with about 30 percent of the companies in the S&P 500 reporting quarterly results.

Several companies rose on results that exceeded Wall Street's expectations.

Boeing was the biggest gainer in the Dow. The aircraft manufacturer climbed $6.81, or 4.2 percent, to $167.36.

Energy prices mostly declined.

Benchmark U.S. crude fell 43 cents to $52.75 a barrel in New York. Brent crude, used to price international oils, slid 36 cents at $55.08 a barrel in London.