New Zealand's batting tail wagged to take them to 403 in their first-innings before they returned to dismiss Pakistan's openers on the second day of the second Test in Dubai.
After frustrating the Pakistani bowlers with his defiant unbeaten 32, Kiwi leg-spinner Ish Sodhi spun a ball past Shan Masood's (13) bat and hit the middle stump.
Sodhi's spin partner Mark Craig then drew the other opener Taufeeeq Umar (16) out of his crease to get him stumped.
Pakistan were 34 for two wickets at stumps, 369 runs behind their opponents with eight first-innings wickets in hand at the Dubai International Cricket Stadium.
Younis Khan, who has hit three centuries and a double hundred in his last six Test innings, was batting on one with Azhar Ali (four) at the other end.
For Pakistan, left-arm spinner Zulfiqar Babar (4-137) wrecked the Kiwi lower order after his limited success against the frontline batsmen.
New Zealand 403 all out (Latham 137, Babar 4-137)
Pakistan 34-2 (Umar 16, Criag 1-8)