The three major US stock indices closed the second quarter with positive returns, marking a resilient finish to a turbulent period for equity markets.

The Dow Jones Industrial Average, S&P 500, and Nasdaq Composite all ended the period in the green, buoyed by a decisive rebound in the technology sector.

Semiconductor and artificial intelligence stocks were the primary engines of the quarterly gains.

After a week characterized by volatility and mixed sentiment among tech-heavy names, investor appetite returned to the hardware and software firms driving the AI infrastructure build-out.

The broad-based recovery in these high-beta sectors provided the necessary lift to offset earlier weakness in other parts of the market.

The positive close comes after a session where US equities opened higher, with the Dow and Nasdaq posting early gains as sentiment improved.