A 163 run unbeaten knock by Tinotenda Mawoyo played a crucial role in guiding Zimbabwe to an innings of 412 runs.
Pakistan however got off to a blistering start ending Day 2 on 116 for the loss of 1 wicket.
Carrying an overnight score of 82 runs, Tinotenda Mawoyo produced a master class batting display which saw him end a glorious innings unbeaten on 163.
For a player who was featuring in only his second test match, Mawoyoâ€™s incredible inning saw him becoming only the third ever Zimbabwean to bat throughout an inning.
The young batsmanâ€™s innings cruelly came to an end when he ran out of partners as Zimbabwe ended on 412 runs.
Resuming on 245 for 4 Mawoyo and Ervine put Zimbabwe past the 250 mark before Ervine fell 1 run short of a half century.
Greg Lamb played a decent innings of 39 runs, but it was after Lamb fell victim to an lbw decision that Zimbabweâ€™s wickets began to fall, with Brian Vitoriâ€™s 14 run contribution the most meaningful from the Zimbabwean tail.
Responding to Zimbabweâ€™s 412 run target, Pakistan suffered an early set back when Kyle Jarvis trapped Taufeeq Umar leg before wicket.
Brian Vitori could have captured the wicket of Mohammed Hafeez but was unlucky to have him dropped by captain Brendan Taylor at slip.
Hafeez and Azhar Ali, who went at a blistering pace, produced a 108 run partnership, as Pakistan ended Day 2 on 116 for the loss of 1 wicket.
Having reached a milestone, Tinotenda Mawoyo was delighted by his maiden test century.
Play resumes on Day 3 with Pakistan looking to build on their 116 runs, while Zimbabwe will be hoping for a better bowling performance that will topple Pakistanâ€™s batsmen.