 Mozdok on the western Terek was founded in Kabardian territory and a line of forts was run down the Terek to Kizlyar.In 1771 the Russians defeated the Kabardians on the Malka River and subjugated some of Lesser Kabardia.In 1777/78 the line was extended from Mozdok northwest to Azov.