Ahmad Shāh Durrānī, also known as Ahmad Shāh Abdālī, was the founder of the Durrani Empire and is often regarded as the founder of the modern Afghanistan. In June 1747, he was appointed as King of the Afghans by a loya jirga in Kandahar, where he set up his capital.