Glenn Maxwell returned career-best figures of 4-40 to end Australia’s five-match losing streak with a consolation 66-run win over India in the third one-day international on Wednesday.

Mitchell Marsh led the batting onslaught with his 96 as Australia posted 352-7, a total their bowlers defended by bowling out India for 286 in Rajkot.

The hosts took the three-match series 2-1 but Australia finish on a high ahead of the ODI World Cup starting October 5 in India.

Maxwell, who returned to the team alongside Mitchell Starc after the two players recovered from their injuries, scored just five with the bat but made an impact with his impressive off-spin.

Maxwell got the first three wickets including skipper Rohit Sharma, for 81, and star batters Virat Kohli, for 56, after a brisk start by India.

Rohit raised his fifty in 31 balls and seemed to have the chase in control but Maxwell got the captain with a stunning caught and bowled in his second over.

He then sent back Kohli soon after the former captain’s 66th ODI fifty and, despite a fighting 48 by Shreyas Iyer, the Indian batting folded in 49.4 overs.

Pace bowler Josh Hazlewood took two wickets as Australia ended the losing streak which started in South Africa earlier this month.

Batters set up victory after Marsh tore into the Indian bowlers in attacking partnerships that included a second-wicket stand of 137 with Steve Smith, who hit 74.

The top four batters stood out with Marsh, David Warner (56), Smith and Marnus Labuschagne (72) all contributing to a mammoth total that looked like going beyond 400 before India hit back.

Indian pace spearhead Jasprit Bumrah took three wickets while left-arm wrist spinner Kuldeep Yadav took two.

Marsh took on Bumrah with three boundaries and a six in the paceman’s first two overs and the left-handed Warner soon joined in the charge.

Warner hammered Prasidh Krishna for three fours and a six in the seventh over and raced to his fifty in 32 balls in the next with another hit over the fence.

Marsh reached his half-ton in 45 balls but was denied a century when he casually slapped Kuldeep straight to cover. His 84-ball knock included 13 fours and three sixes.

Smith, Alex Carey and Maxwell fell at regular intervals, slowing the tourists down before Labuschagne took control until he was undone by Bumrah’s slower ball in the penultimate over.

The two teams now head into the World Cup warm-ups before they meet in the 50-over showpiece tournament on October 8 in Chennai.