Gaining attention
On 4 April 2008, de Villiers became the first South African to score a double century against India with his top score of 217.
De Villiers scored an obdurate 174 that helped set up a ten-wicket win for South Africa in the second Test against England at Headingley Carnegie in Leeds in July 2008. This was followed by a 97 at The Oval before he came down the wicket trying to smash Monty Panesar for a boundary and was caught on the fence.
In the first Test in Perth, de Villiers scored a match-winning century to help South Africa chase down the second-highest-ever fourth innings target of 414 with six wickets in hand. This was South Africa's first Test victory in Australia in 15 years and appeared to go a long way towards tilting world cricket's balance of power after over a decade of Australian dominance. De Villiers also took four diving catches in the course of the match, including one to dismiss Jason Krejza, a stunner at backward point.
De Villiers only scored 11 runs in the second Test at the Melbourne Cricket Ground and made another low score in the first innings of the final Test at the Sydney Cricket Ground. In the second innings of that Test though, de Villiers scored a patient half-century as South Africa almost held on for an against-the-odds draw.
During ODI series, in the 4th ODI in Adelaide, he played as wicket-keeper after Boucher was ruled out. He then scored 82 not out from 85 balls with 6 fours and a six to win the series and was named the man of the match.
In the first Test of the return series at the Wanderers Stadium, de Villiers provided lone resistance in the first innings against a bowling attack led by pace bowler, Mitchell Johnson, scoring 104* off 185 balls with 9 fours and 1 six, while his teammates all fell for under 50. But in the second innings he made only 3 off 7.
In the third Test, after centuries from Ashwell Prince and Jacques Kallis, de Villiers was the third centurion of the innings with a score of 163 off 196 balls with 12 fours and 7 sixes. This knock also tied the record for most sixes in an over as de Villiers, off the bowling of McDonald, hit four consecutive sixes.
In the following 5-game ODI series, de Villiers played consistently, although starting badly in the first game, scoring only 2 runs. However, he went on to make 36*, 80, 84 and 38 and was named Player of the Series at the conclusion of game 5.
He was rested for the two-match Twenty20 series against Zimbabwe and because Mark Boucher was injured as well Heino Kuhn donned the keeping gloves. De Villiers returned for the ODI series and also took over the gloves while Boucher was recovering. He did well against Zimbabwe scoring two centuries out of the three ODIs as South Africa comfortably won the three match series 3–0.
His major challenge came against Pakistan for the two Twenty20 matches, where he kept wicket. In the first match, he was out for a second-ball duck off a superb delivery by Shoaib Akhtar. In the second T20I he scored 11 runs. He then participated in the five-match ODI series where South Africa were chasing 203 to win and he scored 51 before he was caught and bowled by Saeed Ajmal. In the second ODI he scored 29 as he was bowled by Shahid Afridi; in the same match, a flamboyant Abdul Razzaq played the greatest innings of his life to lift Pakistan to an unbelievable victory. During the third match, he scored 19 before he was stumped by Zulqarnain Haider. It turned out to be a mistake by the umpire as he had pressed the wrong button. In the fourth match, he missed out on a half-century while on 49 when he gave his wicket to the fielder at point. His good form in the series continued when he scored 61 in the final ODI as South Africa won by 57 runs and the series 3–2.
For his performances in 2009 and 2010, he was named in the World Test XI by the ICC, and was also named in the World ODI XI in 2010.