In his first match as ODI captain against Sri Lanka he scored a century however Pakistan still lost by 16 runs. He then also took over the Test captaincy but resigned after one match in charge citing lack of form and ability to play Test cricket; at the same time he announced his retirement from Tests.