When the Safavids began to lose their power at the beginning of the 17th century, the people of Dagestan united under the leadership of Çolak Surhay Khan of the Gazikumukh Khanate, and they won a victory against Iran in 1712. In order to continue their success, he took the people of Dagestan, who asked for help from the Ottoman administration, under his protection by sending gifts to the sultans of the Sublime Porte.
