The tournament did not start well for Pakistan, losing to their arch-rivals India by 124 runs. But as the group stages progressed the bowling attack improved significantly for Pakistan, winning games against South Africa by 19 runs, and a crucial game against Sri Lanka by 3 wickets. This set up a semi-final against hosts and favourites England, where Hasan Ali took 3 wickets to take Pakistan to their first ICC Champions Trophy Final, a highly anticipated re-match with India.
In August 2016, Pakistan achieved the number 1 ranking in test cricket for the first time since 1988, after Sri Lanka whitewashed Australia. Pakistan displaced India as number 1 after rain caused the final test match between India and West Indies to end in a draw. Pakistan became the 1st Asian team and 2nd team overall to win a day-night test match, which was against the West Indies in Dubai.
However, from 1968 to 1971 they played 27 consecutive Test matches without defeat, winning 9 and drawing 18 (including the abandoned Test at Melbourne in 1970–71). The sequence began when they drew with Australia at Lord's in the Second Test of the 1968 Ashes series and ended in 1971 when India won the Third Test at The Oval by four wickets. They played 13 Tests with only one defeat immediately beforehand and so played a total of 40 consecutive Tests with only one defeat, dating from their innings victory over the West Indies at The Oval in 1966. During this period they beat New Zealand, India, the West Indies, and Pakistan, and under Ray Illingworth's leadership, regained The Ashes from Australia in 1970–71.