Pakistan shocked South Africa, the No. 1 Test playing nation, with a commanding seven-wicket victory in Abu Dhabi, but two days into the second and final Test of the series the Proteas are in complete control in Dubai.
Leg-spinner Imran Tahir led the way on Day 1 picking up 5-32 in his first Test match since his 0-180 against Australia in Adelaide last year as South Africa bowled out Pakistan for just 99 and already had a lead by stumps.
The Proteas came into the second day on 3-128 and now at stumps on Day 2, captain Smith remains not out at the crease on 227 while de Villiers has also reached triple figures to be 157 not out.
South Africa is 4-460 with a lead of 361 runs over Pakistan with six first innings wickets still in hand and even worse for Pakistan, three days remaining in the match.
Smith's so far unbeaten 227 is a welcome return to form for the South African skipper.
Since Smith scored 122 in Adelaide against Australia in November last year, he had failed to score more than 84 in a Test and averaged just 30 in 11 innings, but the 32-year-old has again shown his propensity to cash in when he gets to triple-figures.
Smith's first double-century came against Bangladesh in 2002 in just the third match of his Test career and then he really took the cricket world by storm in England in 2003 with back-to-back scores of 277 and 259.
He added another double-century against Bangladesh in 2008 but that was his last until now with him remaining 227 not out in what is the fifth double century of 112-match Test career and 27th century overall.
For de Villiers as well, he continues to hammer home the point that he is more than capable of doing the job with the gloves for South Africa and being one of the best batsmen in the world.
He remains 157 not out from 262 deliveries with his innings including 16 boundaries and a six.
It is the 17th century in de Villiers' 87-match Test career for South Africa and his fourth ton in his last 12 innings.
Pakistan came into the Second Test in Dubai full of confidence after the impressive victory in the United Arab Emirates, but two days later and order has been restored.
South Africa was already 3-128 with a lead of 29 runs at the end of Day 1 and now after a full day's play on Thursday Pakistan was only able to dismiss Proteas nightwatchman Dale Steyn for seven when he was bowled by Mohammad Irfan.
Since then, Smith and de Villiers have combined for an unbroken partnership of 326 runs from 470 deliveries with Smith scoring 158 of those runs and de Villiers 157.
The going has been tough for Pakistan's four main bowlers with Saeed Ajmal ending Day 2 with figures of 2-132 from 43.4 overs. Left-arm spinner Zulfiqar Babar has 1-112 from 31.2 overs while left-arm pacemen Irfan (1-84 from 27) and Junaid Khan (0-99 from 27) have found it tough.