The captured Seljuqs would serve for David's ambitions to rebuild his kingdom. The unification of Georgia and the elimination of Muslim authority was completed in the year following the battle at Didgori. David laid siege to and captured the city of Tbilisi which became a royal town, the capital of Georgia, ""for ever an arsenal and capital for his sons"." The medieval sources emphasize David's acts of revenge against the Muslims of Tbilisi. However, the Arab historian al-'Ayni (1360–1451), who utilizes sources, some of which have not survived, admits that the city was pillaged but says that the Georgian king eventually showed patience and "respected the feelings of the Muslims." A well-educated man, he preached tolerance of other religions, abrogated taxes and services for the Muslims and Jews, and protected the Sufis and Muslim scholars. Having his forces exhausted and being wounded himself, Ilghazi returned to Mardin in a devastated condition. The Didgori battle helped the Crusader states, which had been under the pressure of Ilghazi's armies. The weakening of the main enemy of the Latin principalities was beneficial for the Kingdom of Jerusalem under King Baldwin II.