What does Ribat mean?

Meaning:

Fortified defensive constructions, generally installed on frontiers. They also serve as lodgings for travelers and as places for meditation.