South Africa captain Graeme Smith piles on the runs against Pakistan

Captain Graeme Smith hit an unbeaten double century as South Africa established a 361-run lead over Pakistan on the second day of the second Test in Dubai.

Smith was 227 not out and AB de Villiers scored an unbeaten 157 as the pair set a new South African fifth wicket partnership record of 326 to put the Proteas in command.

He batted for more than 10 hours, passed 9,000 Test runs and recorded the fifth double century of his career.