US equity markets posted gains on Tuesday, buoyed by a combination of favorable macroeconomic data and strong corporate performance.

Investors reacted positively to June inflation figures that came in below expectations, a development that has eased concerns about persistent price pressures and reduced the likelihood of aggressive monetary tightening.

The softer inflation print provided a welcome reprieve for risk assets, allowing the Dow Jones Industrial Average and the S&P 500 to close in positive territory after a session of steady buying interest.

This follows Monday’s close, where markets also ended higher as investors digested the latest data suggesting that the Federal Reserve may have more room to maneuver without risking a policy error.

The consensus view among traders is that the cooling inflation trend supports a more dovish stance from the central bank, potentially avoiding a mistake that could stifle growth.

Despite the equity rally, energy markets faced headwinds from geopolitical developments.