SYDNEY, AAP – Gains in the commodity categories of energy and materials shares have helped the ASX end Friday and the week higher.

Materials shares were the top performer. Mining giant Rio Tinto improved by 2.5 per cent to $111.37.

Energy shares were elevated while oil production in the Gulf of Mexico remains mostly shuttered after Hurricane Ida.

The benchmark S&P/ASX200 index closed better by 37.2 points, or 0.5 per cent, to 7522.9.

For the week, the index gained 0.46 per cent.

The All Ordinaries was up 42.9 points, or 0.55 per cent, to 7826.7.

The Australian dollar was buying 74.21 US cents at 1618 AEST, higher than 73.79 US cents at Thursday’s close.