In the 17th century, Russian Emperor Peter I organised the Persian Campaign of the 1722—1723. The Endirey principality was the first to oppose the Russian forces, and despite their defeat, caused great losses which shocked the Emperor. Kumyks of the Utamish Soltanate also fiercely resisted at The Battle at the River Inchge. Peter I stated afterwards: