Abu Dhabi - AB de Villiers has posted South Africa's highest individual score to give them firm control of the second Test on the second day against Pakistan at the Sheikh Zayed Stadium on Sunday.
De Villiers scored 278 not out to pass Graeme Smith's landmark of 277 against England in Birmingham in 2003, with captain Smith declaring their first innings closed on 584 for nine shortly afterwards.
Taufeeq Umar (16) and Azhar Ali (34) then took Pakistan to 59 for one before bad light stopped play and stumps were drawn with seven overs remaining in the day.
Mohammad Hafeez was the batsman out, playing across his front pad and being trapped lbw for two in the first over of the innings.
De Villiers came to the wicket with the score at 33 for three on the first morning, but immediately looked settled and occupied the crease for more than 11 hours, taking 418 deliveries and hitting 23 fours and six sixes.
South Africa had begun the second day on 311 for five and de Villiers showed excellent management of the lower order as he shared stands of 73 with Mark Boucher (45), 42 with Johan Botha (12), 59 with Steyn (27) and 35 with Paul Harris (19).
The 26-year-old de Villiers reached the record in a thrilling final hour of the innings, when he and last man Morne Morkel (35 not out) added a record 107 runs in 13.4 overs.
South Africa's previous best 10th-wicket stand was made in 1929 when Harold "Tuppy" Owen-Smith and Alexander "Sandy" Bell added 103 against England in Leeds.
Pace bowler Tanvir Ahmed, playing in his first Test, was the best of the Pakistan bowlers with six for 120 in 27 overs.
De Villiers, who had a reputation for impetuous strokeplay in his youth, batted with composure and maturity, before tearing into the bowling in the hour before tea.
De Villiers, whose double century was the second of this career, and Jacques Kallis (105) had added 179 for the fourth wicket on the first day.
The first Test in the two-match series was drawn in Dubai last week.