US stock markets rallied on Friday, marking a continued recovery for Wall Street following a turbulent week characterized by significant losses in the technology sector.

The S&P 500 and Nasdaq Composite both posted gains shortly after opening, as investors appeared to rotate back into growth names that had been under pressure earlier in the week.

The rebound comes after a sharp sell-off in tech-heavy indices on Tuesday, which had dragged broader market sentiment lower.

Wednesday’s session had already shown signs of stabilization, with broad-based gains suggesting that the worst of the weekly volatility may be behind investors.

Friday’s move indicates that buying interest has returned to the sector, helping to offset the previous week’s declines.

This recovery follows a period of heightened risk appetite earlier in the week, initially sparked by reports that the United States and Iran were nearing a formal peace agreement.