After the death of Nader Shah in 1747 , the Afghans chose Ahmad Shah Durrani as their head of state .
In 1747 , after Nader Shah of Persia was killed , a great leader named Ahmad Shah Durrani united all the different Muslim tribes and established the Afghan Empire ( Durrani Empire ) .