This article introduces into scholarly circulation for the first time a highly valuable Arabic inscription housed in the museum of the high-mountain Dagestani (Tsakhur) village of Gelmets, originally discovered in the neighboring Tsakhur village of Mikik. Dated to 1105 AH (1693–1694 CE), this commemorative inscription records the construction of a building designated as a ribat – marking the first documented appearance of this term in the Islamic epigraphy of Dagestan and Russia. The author establishes that the structure served a primarily religious purpose, concluding that the term ribat in this context denotes a Sufi monastery that simultaneously functioned as a caravanserai and shelter for travelers and wandering dervishes. Because the existence of post-Mongol invasion ribats in Dagestan was previously unknown, this discovery demonstrates that such institutions continued to be established in the region as late as the end of the 17th century. The construction of this ribat is directly linked to the deep-rooted Sufi traditions of the early Islamized Samur region, specifically the widespread influence of the Khalwatiyya tariqah, whose practices permeated southern Dagestan from neighboring Shirvan during the 15th and 16th centuries. Furthermore, the 1693–1694 inscription stands as one of the richest records in Dagestani epigraphy regarding prosopographical data, containing numerous proper names and patrilineal lineages (nasabs). The text identifies the construction’s primary organizer, his brother, his father, and five master builders alongside their places of origin, while separately naming the calligrapher and the decorative stonecarver. The inscription reveals that the ribat was built during the reign of Amir Khan Sultan, identifying him as the ruler of the Tsakhur-Ilisu Sultanate – a feudal domain spanning the upper reaches of the Samur River in southern Dagestan and adjacent Transcaucasian territories. This reference provides the first historical markers for the previously unknown chronology of Amir Khan Sultan’s reign. The complete translation of the inscription is presented alongside comprehensive scholarly commentary.