Rohit Sharma scored his 28th ODI hundred as India beat Australia by seven wickets with 15 balls remaining to win the three-match series 2-1 on Sunday.

Sharma scored 119 runs off 128 balls with eight fours and six sixes as he anchored India’s run-chase in the third and final one-day international. Virat Kohli contributed a superb 89 off 91 balls as the hosts scored 289-3 in 47.3 overs.

This was in reply to Australia’s 286-9. Steve Smith (131) reached his first hundred in three years, while Marnus Labuschagne (54) scored his first ODI half-century after the visitors won the toss and opted to bat.

Australia's David Warner, left, checks out the bat of India's Manish Pandey after India won the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. (AP PhotoAijaz Rahi)

Australia's David Warner, left, checks out the bat of India's Manish Pandey after India won the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. (AP PhotoAijaz Rahi)

India’s bowlers, led by Mohammed Shami’s 4-63, did well in restricting Australia to a sub-par total.

Sharma and Kohli then put on 137 runs for the second wicket to deny Australia any chance of a comeback as India clinched the series.

Australia had won the first ODI in Mumbai by 10 wickets. India won the second ODI in Rajkot by 36 runs.

India's captain Virat Kohli bats during the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. (AP PhotoAijaz Rahi)

India's captain Virat Kohli bats during the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. (AP PhotoAijaz Rahi)

More AP sports: https://apnews.com/apf-sports and https://twitter.com/AP_Sports

India's Shreyas Iyer bats during the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. (AP PhotoAijaz Rahi)

India's Shreyas Iyer bats during the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. (AP PhotoAijaz Rahi)

Australia's captain Aaron Finch reacts as he leaves the field their loss in the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. India won the series 2-1. (AP PhotoAijaz Rahi)

Australia's captain Aaron Finch reacts as he leaves the field their loss in the third one-day international cricket match between India and Australia in Bangalore, India, Sunday, Jan. 19, 2020. India won the series 2-1. (AP PhotoAijaz Rahi)