The S&P/ASX200 rose 24.2 points on Wednesday, up 0.27 per cent, to 9153.2, as the broader All Ordinaries gained 23.5 points, or 0.25 per cent, to 9291.3.
Local miners initially tumbled after a US inflation spike prompted a hawkish repricing of interest rate expectations, but metals prices recovered in the afternoon as hype around the upcoming Anthropic initial public offering reinvigorated the AI trade.
The local market has traded higher for four of the past five sessions, echoing a recovery in global risk assets as oil prices ease on hopes the US-led conflict with Iran could be winding down.
"It's been a volatile three or four weeks with a lot of sort of downside risk priced in," Capital.com senior market analyst Kyle Rodda told AAP.
"We saw that manifested in the market, now equities are picking up a little bit more across the globe, so it's very much a global macro story."
BHP and Rio Tinto turned around their early losses to gain 0.7 per cent or more, while battery minerals and rare earths producers outperformed the segment.
Gold stocks were mixed but largely clawed back some early losses as the precious metal rebounded to $US4062 an ounce.
The heavyweight financials sector capped the index-level upside as two of the big four banks retreated after the value of new home loans tumbled to their sharpest quarterly drop since records began in 2002.
CommBank shares dipped 1.2 per cent to $166.94 after the bank's first-quarter result showed further signs of the mortgage slump, which has come amid a perfect storm of softening property prices, flagged investor tax changes and almost two-decade-high interest rates.
Energy stocks gained 0.7 per cent as oil's recent dip continued to find buying support, with Brent crude trading slightly higher above $US92 a barrel, boosting Woodside, Santos, Ampol and Viva shares.
Consumer cyclicals jumped 0.5 per cent after a shaky start, with solid gains for Wesfarmers, Light & Wonder, and Guzman y Gomez, while staples traded roughly flat.
In company news, David Jones will shutter roughly half its stores across Australia and New Zealand in an urgent restructuring plan by receivers FTI Consulting to save the retail chain.
Macquarie Bank has admitted failures in how it promoted its savings rate for new customers, and said it would not contest a $14 million fine proposed by the corporate watchdog.
The Australian dollar is buying 68.75 US cents, down from 69.26 US cents on Tuesday.
ON THE ASX:
* The S&P/ASX200 rose 24.2 points, or 0.27 per cent, to 9153.2
* The broader All Ordinaries gained 23.5 points, or 0.25 per cent, to 9291.3
One Australian dollar trades for:
* 68.75 US cents, from 69.26 US cents on Tuesday at 5pm AEDT
* 109.19 Japanese yen, from 109.47 Japanese yen
* 61.61 euro cents, from 61.70 euro cents
* 51.53 British pence, from 51.51 pence
* 122.61 NZ cents, from 122.88 NZ cents