During the 17th century, the Kazakhs fought Oirats, a federation of western Mongol tribes, including the Dzungar. The beginning of the 18th century marked the zenith of the Kazakh Khanate. During this period the Little Horde participated in the 1723–1730 war against the Dzungar Khanate, following their "Great Disaster" invasion of Kazakh territories. Under the leadership of Abul Khair Khan, the Kazakhs won major victories over the Dzungar at the Bulanty River in 1726, and at the Battle of Anrakay in 1729.