Jacques Kallis broke major records as he guided South Africa to a commanding position on the second day of the fourth Test against West Indies on Saturday.
Kallis scored an undefeated 127 as South Africa, who won the toss and chose to bat, reached the close on 525 for four.
It was Kallis' 22nd century, breaking the record of 21 he held with Gary Kirsten for the most Test hundreds scored by a South African.
The innings also pushed Kallis past Kirsten's career aggregate of 7289 runs, which was the South African record.
Kallis has scored 7317 career runs.
"As a youngster I never thought I would do something like this but it's also sad in a way because Gary Kirsten contributed such a lot to South African cricket," he told a news conference.
"I'll try and call Gary tonight; it will be 3 am in South Africa but I don't care," added Kallis.
Ashwell Prince was 114 not out, his second century, in an unbroken stand of 230, a record for South Africa's fifth wicket against all opposition.
The previous best was the 192 that Kirsten and Jonty Rhodes shared against England in Durban in 1999-00.
FOUR CENTURIES
AB de Villiers' 114 and Graeme Smith's 126 also meant it was the first time four South Africans had scored centuries in one Test innings.
The 1955 Australians were the last team to inflict four or more centuries in one innings on West Indies when they scored five in Kingston.
Prince, who faced 230 balls and hit 12 fours and a six, lived dangerously in the first half of his innings.
He did not offer a chance but played several false strokes and was beaten occasionally before he dug in for the long haul.
The more disciplined Kallis played a restrained innings, which featured 12 fours and a six, and came off 256 balls.
De Villiers and Smith became the ninth opening pair and the third for South Africa to share century stands in three consecutive Tests.
They are also the first pair of openers to both score centuries in consecutive Test innings.
Smith scored 104 and De Villiers made a career best 178 in the third Test in Bridgetown, which South Africa won by an innings and 86 runs to clinch the series.
Kallis said the flat pitches the South Africans had encountered in the Caribbean had contributed to their success.
"The wickets we've played on in the series have been pretty good, and they have been a factor," he said.
"I don't think it's Perth out there, to be honest."
STRONG POSITION
Kallis said the fact that the series had been decided had not diluted South Africa's resolve to win the match.
"We came here to win, and we're in a strong position," he said.
Sixth-placed South Africa will climb at least one rung on the Test ladder if they win the fourth Test to claim the series 3-0.
"We were near the top of the rankings (in second place), and it has hurt us to drop down like we have," Kallis said.
Prince said his previous two innings in the series, in which he scored 23 and 45, had spurred him on.
"I was frustrated because I got out after getting in the second and third Tests, so I was determined to do well here," he told a news conference.
South Africa needed Kallis' and Prince's intervention after they lost four wickets -- three of them for six runs -- in the morning session.
Scoreboard
South Africa (1st innings): (Overnight: 214-0)
AB de Villiers c Browne b Best 114
G. Smith c Washington b Powell 126
B. Dippenaar run out 5
J. Kallis not out 127
H. Gibbs c Deonarine b Gayle 23
A. Prince not out 114.
Extras: (b-4, lb-1, nb-7, w-4) 16.
Total: (for 4 wickets, 147 overs) 525
Fall of wickets: 1-245, 2-245, 3-251, 4-295.
To bat: M. Boucher, N. Boje, M. Zondek i, M. Ntini, S. Pollock
Bowling: Powell 24-2-108-1 (nb-1 w-3); Best 23-4-99-1 (nb-4); Washington 22-3-73-0; Bravo 22-4-80-0 (nb-2 w-1); Gayle 31-11-65-1; W. Hinds 6-0-24-0; Deonarine 18-1-69-0; Sarwan 1-0-2-0.