Stocks rose Tuesday as key inflation data came in line with expectations and investors bet that the risk of contagion from the collapse of Silicon Valley Bank and Signature Bank have been contained. The Dow Jones Industrial Average climbed over 300 points, while the S&P 500 and Nasdaq Composite added 1.7% and 2%, respectively.

Here's how the market settled on Tuesday:

S&P 500 Index (SPY  ): +1.68% or +64.80 points to 3,920.56

Dow Jones Industrial Average (DIA  ): +1.06% or +336.26 points to 32,155.40

Nasdaq Composite Index (QQQ  ): +2.14% or +239.31 points to 11,428.15

In focus on Tuesday, February's Consumer Price Index (CPI) report showed prices rose 6.0% on an annual basis, marking the smalling increase since September 2021 and coming in-line with analyst estimates. Core CPI, which excludes food and energy prices, also grew in-line with expectations at 5.5%.

On a month-to-month basis, CPI rose in-line with estimates at 0.4% in February over January, while Core CPI came in slightly higher-than-expected over January at 0.5%.

The more encouraging inflation data comes at a crucial moment for the Federal Reserve, as officials are set to issue another policy decision next week amid the second and third largest bank failures since the 2008 financial crisis. The Commerce Department will release February's U.S. retail sales print on Wednesday, which will give policymakers more clues on the health of the American consumer.

In the wake of positive inflation data, investors sought to buy the dip in financial stocks on Tuesday following two session of deep selloffs. The SPDR S&P Regional Banking ETF (KRE  ) ended the day up 2%, regaining some losses from its 12% decline on Monday. Deeply battered First Republic Bank (FRC  ) popped over 25% after closing down over 60% on Monday.

Bank sentiment across the sector also increased, with major banks like Bank of America (BAC  ), JPMorgan Chase (JPM  ), Wells Fargo (WFC  ) and Citigroup (C  ) all rising higher, while regional banks like PacWest Bancorp (PACW  ), Western Alliance (WAL  ), Zions Bancorp (ZION  ), and Regions Financial (RF  ) all posting gains on Tuesday.