 Towards 940 the "heathen” Yagma from the southern border seized the Chu valley and the Karluk capital Balasagun.The Yagma ruler bore the title Bogra-khan (Camel Khan), very common among Karakhanids.The Yagma quickly proceeded to take control of all Karluk lands.