Babar Azam has been named the new Pakistan Test captain.
The Pakistan Cricket Board (PCB) confirmed on Tuesday the batsman has taken over from Azhar Ali.
Babar, who is now skipper across all three formats for his country, will first captain his side in the Test series against New Zealand in December and January.
"I feel truly honoured to have been appointed Test captain and join some of the most iconic players who have captained Pakistan in the purest format of the game," he said.
"I can now say with conviction that dreams can come true only if you chase them with honesty, dedication and commitment.
"I am ready and prepared to take up the additional responsibility and the fact which gives me additional confidence that I can do the job is the experience that is available to me in the changing room in the shape of the players and support staff.
"I want to thank Azhar Ali for the way he captained the team in the last season, which was a difficult one, but I know that he will leave no stone unturned in giving his very best to the team."
PCB chairman Ehsan Mani said: "I want to thank Azhar Ali for stepping up last year by captaining the side in what was a historic first home Test series in over a decade. I believe Azhar still has a lot of cricket left in him and Pakistan cricket can continue to make the best use of his experience and knowledge as specialist top-order batsman moving forward.
"Babar Azam was identified at a very young age as a future leader and as part of his progression and development, he was appointed white-ball captain last year. With his consistent performance and leadership skills, he has demonstrated that he is ready to take on the additional responsibilities of a captain.
"As we are looking into the future, it is appropriate that we appoint him the captain now so that he continues to grow stronger with every match. I wish Babar all the best and remain optimistic that he will help Pakistan cricket make an upward movement across all formats not only through his performance but also with his positive attitude and result-oriented approach."
Babar made his Test debut against West Indies in October 2016 and has made five centuries and 15 half-centuries in just 29 matches.
He hit 82 off 55 balls at the top of the order as Pakistan sealed a six-wicket win in the Twenty20 series opener against Zimbabwe last week, following up with 51 as they claimed victory in the second match on Sunday.