Dhoni was named the captain of Indian squad for the inaugural ICC World Twenty20 held in South Africa in September 2007. India were crowned champions as Dhoni led the team to victory against Pakistan in a thrilling contest. He went on to become the ODI captain of the Indian team for the seven-match ODI series against Australia in September 2007. He made his debut as full-time Test captain of India during the fourth and final Test against Australia at Nagpur in November 2008, replacing Anil Kumble who was injured in the third test and who then announced his retirement. Dhoni was vice-captain in this series up to that point. India eventually won that Test, thus clinching the series 2–0 and regained the Border-Gavaskar Trophy. Dhoni had previously captained India on a stand-in basis against South Africa and Australia, in 2008 and 2009 respectively.