Early in the 18th century, Iran was under a serious threat of being conquered by the Afghans. the shah of Iran entrusted the command of the troops fighting against Afghanistan to the Islamized Georgian kings. There were about 2000 Georgian troops in Afghanistan. Led by Giorgi XI (known as Gurgin Khan in Iran), the Georgians succeeded temporarily in halting the raids of Afghan tribes against Iran.