that Husayn hand over various Kara Koyunlu officials who had fled to him, a demand which Husayn refused. Yadgar therefore continued his assault, and Husayn was unable to match his forces due to mass desertions. He ended up fleeing Herat, which was occupied on July 7, 1470. Six weeks later, Husayn reoccupied the city after raising a fresh force and defeating the sons of Abu Sa'id, who were attempting to advance into the region. He captured Yadgar and executed him. Husayn's empire was now secure. The Aq Qoyunlu made no further attempts against him, and the Timurids in Transoxiana were too weakened by internal conflicts to advance into his territory. His boundary with the Aq Qoyunlu started on the southern edge of the Caspian Sea, running south, then east across the north of the Dasht-e Lut, ending at Lake Hamun. His border with the Timurids was the Oxus River. He more or less respected both borders, refusing to cross north in an attempt to capture Transoxiana from his former enemies. He was probably aware of the Uzbek threat to the region, and was wise enough not to pursue a border with this dangerous tribal people. Administration Husayn was viewed as "a good king, a lover of peace and justice", and he built numerous structures including a famous school; however, he was sick with a palsy for twenty years of his reign. He was forced to deal with several revolts and incursions. In 1490 the brother of Husayn's son Ibrahim Husain's guardian, Darvish 'Ali, conspired with Sultan Mahmud, who by that time ruled in Hisar. Mahmud moved against Balkh, which Ibrahim resided in, forcing Husayn to mobilize against him. Some years later, Husayn transferred his eldest son, Badi' al-Zaman, from Astarabad (renamed Gorgan in 1937) to Balkh, but Badi' revolted when his son Muhammed Mu'min was denied rule in Astarabad. Husayn defeated both Muhammed, whom he executed, and Badi', whom he reconciled with. The truce fell apart afterwards, however, and in 1499 Badi' besieged Herat. Husayn Bayqara introduced a ban on the drinking of wine and the shaving of beards. He said that “Although in the days of some [other rulers], the principles of the Sharia and the community of Islam were at the mercy of heretics ... (in his time) the arms of the Holy Law and the laws of the Prophet are so strong that...." going on to boast