Later that year, in May, India toured Bangladesh for two Tests and three ODIs. On 18 May, Shakib made his Test debut against India. He batted once, scoring 27 runs, and bowled 13 overs without taking a wicket as the match ended in a draw. In his 2nd match he batted twice scoring 30 and 15 runs and bowled 19 overs without taking any wickets where also wicket-kept for 8 balls till India's innings declaration, as India won by an innings and 238 runs. India won the Test series 1–0 and the ODI series 3–0. After the tour, Dav Whatmore resigned from his position as Bangladesh coach, and batsman Mohammad Ashraful replaced Habibul Bashar as captain. In September 2007, South Africa hosted the ICC World Twenty20. Victory against West Indies in the first round was enough to ensure Bangladesh's progression to the second round, although it was the only one of their five matches they won. In the match against West Indies, Shakib took 4/34; it was the first time a Bangladesh player had taken more than three wickets in an International Twenty20 match (T20I). Shakib was part of another piece of T20I history when in a match against Australia in the tournament he became one of three victims of the first T20I hat-trick. Brett Lee took Shakib's wicket, followed by those of Mortaza's and Alok Kapali to help Australia to a nine-wicket win. In October that year, it was announced that Jamie Siddons – Australia's assistant coach – would take over the role of Bangladesh coach; Siddons asserted that the previous set-up had focused on short-term goals and that he was planning to improve Bangladesh over the long term and keep together a core squad of talented players to gain experience at international level.