Babar Azam and Fawad Alam halted a worrying start to the second Test between Pakistan and South Africa before rain stopped play at Rawalpindi Cricket Stadium on Thursday.
Pakistan won the opening Test but lost three wickets for just one run as they were reduced to 22-3 in a promising first session for the Proteas on day one.
However, like he did with a century in Karachi last week, Fawad (42no) helped get the hosts back on track by establishing a 123-run partnership with captain Babar (77no).
The pair displayed some wonderful shots as they took the match to South Africa, with Babar racking up 12 fours and Fawad five but rain during tea stopped them returning on 145-3.
Keshav Maharaj would have had a first-ball wicket had Temba Bavuma held on to Imran Butt (15) at first slip on 13 but he got his man courtesy of a sharp catch from wicketkeeper Quinton de Kock, making his final appearance as Test captain.
Maharaj (2-51) had Azhar Ali lbw for a duck in his next over and Pakistan looked in serious trouble when Aiden Markram reacted brilliantly at short leg after Anrich Nortje's rapid delivery struck Abid Ali (6) on the thigh and zoomed towards him.
However, Babar responded by getting off the mark with back-to-back boundaries and, alongside Karachi hero Fawad, steered the hosts to lunch without further loss.
The duo continued to assert themselves and Babar brought up his 16th Test half-century and took Pakistan into triple figures with a fine shot in front of square.
Kagiso Rabada thought he had made the breakthrough but his appeal for lbw against Babar was ignored, with replays showing the skipper sent an inside edge onto his pads.
South Africa were unable to break the impressive fourth-wicket stand before tea and heavy rainfall denied them the chance to make further inroads during the final session.
George Linde left the field during the first session for an X-ray after hurting a finger on his left bowling hand while fielding.
He did not sustain a fracture but received stitches and practiced bowling with protective strapping on before stepping back inside the ropes before tea.
Linde did not bowl another over, but the Proteas will be hoping he can do so before the end of the match, with Dean Elgar having stepped up as a second spin option.