In 1118, under the rule of David the Builder the Kingdom of Georgia undergoes decisive military reforms, which among other results in the creation of a large royal guard detachment of about 5000 horsemen. The king personally directs the training and equipment of the army. This new type of force is to stand up to the regional Seljuk foothold, and then go over to a methodical offensive with the aim of expelling the Seljuks first from Georgia and then from the whole Caucasus. During a period of 106 years, the Georgians win four great victories over the Seljuk Turks in the battles of Ertsukhi (1104), Didgori (1121), Shamkori (1195) and Basiani (1205) slowly eliminating their dominance over and presence in the region. This organisation of the army created by David remains practically unchanged throughout the 12th century.