The Gurjar Pratihar Empire acted as a barrier for Arab invaders from the 8th to the 11th century.