The Hotaki dynasty was founded in 1709 by Mirwais Hotak at Kandahar, Afghanistan. It was made up of Pashtuns (ethnic Afghans) who belonged to the Hotak tribe of Pashtuns. They revolted and made their land independent from foreign ruler, but later they invaded Persia and defeated the great Persian Empire of the Shi'a Safavids.