US equity markets closed June on a positive note, capping a second quarter that delivered the largest percentage gains for Wall Street since 2020.

The S&P 500 and Nasdaq Composite both posted significant advances, buoyed by sustained investor appetite for technology stocks and artificial intelligence themes.

The Nasdaq Composite led the charge, gaining more than 11% over the quarter.

The Nasdaq Composite led the charge, gaining more than 11% over the quarter.

This surge underscores the market's ability to overlook broader geopolitical headwinds, specifically the ongoing military conflict between the United States and Iran, which has persisted throughout the period.

Recent trading sessions have seen further risk-on momentum, with equities posting gains on Monday following reports that Washington and Tehran are nearing a formal peace agreement.

The prospect of a diplomatic resolution to the protracted conflict has helped reinforce the bullish sentiment that characterized the quarter's close.