After the retirement of Mashrafe Mortaza in 2017, Shakib was appointed as the T20I captain of the team for the second time. Later Mushfiqur Rahim was also removed from Test captaincy and Hasan was again appointed as Test captain. However, during 2017–18 Bangladesh Tri-Nation Series, he injured his finger and was rested for few days. In his absence, Mahmudullah captained the side in the Home series against Sri Lanka and 2018 Nidahas Trophy. His first tour was against Pakistan in July 2017.