U.S. stocks fell sharply in choppy trade Wednesday, giving up earlier gains, as Wall Street wrapped up a volatile month for the major averages.
The Dow Jones industrial average closed 380.83 points lower at 25,029.20, with Caterpillar as the worst-performing stock in the index.
More than half of the day's losses came in the final hour of trading with the Dow losing more than 240 points in the final 60 minutes.
The pulled back 0.9 percent to close at 2,713.83, with energy as the worst-performing sector. The Nasdaq composite ended 0.8 percent lower at 7,273.01.
Jeff Kilburg, CEO of KKM Financial said the S&P 500 dipped below its 50-day moving average late in the session. "That forces some technical selling pressure and flushes out some weak longs," he said.
Earlier in the session, the S&P 500 and Nasdaq rose as much as 0.6 percent and 0.7 percent, respectively. The Dow gained as much as 166.12 points.
The Dow and S&P 500 snapped 10-month winning streaks, their longest since 1959. The Nasdaq posted a monthly loss for the first time in eight months. For the month, the Dow and S&P 500 closed lower by 4.3 percent and 3.9 percent, respectively. The Nasdaq closed February down 1.9 percent.
February was a volatile month for stocks. The major averages dipped in correction territory earlier this month, falling 10 percent from record highs set on Jan. 26. The move lower came as fears of rising inflation sent rates higher and sent market volatility surging after a year of unprecedented calm.
"The volatility is being caused by one overarching theme: The market doesn't know what to expect from the Fed," said Tom Essaye, founder of The Sevens Report. "There's uncertainty around that and it's going to continue for the next several months."
But the Dow, S&P 500 and Nasdaq had recovered some of those losses as of Wednesday's close. The Dow and S&P 500 are 6 percent and 5.5 percent, respectively, below their all-time highs, while the Nasdaq was 3.1 percent away.
Stocks rose earlier on Wednesday as interest rates stabilized. On Tuesday, the 10-year U.S. note yield jumped about five basis points to over 2.9 percent after Federal Reserve Chair Jerome Powell hinted at the possibility of more than three rate hikes for 2018 in his testimony to Congress members.
Powell's testimony also sent stocks reeling. The Dow closed nearly 300 points lower, while the S&P 500 and Nasdaq finished the previous session down 1.3 percent and 1.2 percent, respectively.
"Valuations keep getting stretched," said Eric Ervin, CEO of Reality Shares. "As long as rates remain low, the market can justify them. But as rates go higher, then we have to have higher earnings growth. The question is can companies sustain this."
Powell is scheduled to testify in front of Congress again on Thursday.
In corporate news, home improvement retailer Lowe's reported weaker-than-expected quarterly earnings, sending the company's stock down more than 6 percent.
Booking Holdings — formerly known as Priceline — saw its shares spike more than 6 percent after reporting better-than-expected adjusted earnings.
Correction: Powell is scheduled to testify in front of Congress on Thursday. A previous version of this story misstated the day.