During the Muslim conquest of Transoxiana, Rabinjan was subjected to attacks by the Arabs. In 699 Habib ibn al-Muhallab undertook a raid against it, but he was opposed by an army led by the lord of Bukhara and decided to withdraw. It was during the campaigns of Qutayba ibn Muslim (705–715) that Rabinjan was conquered by the Muslims. In 712 the town was the scene of a skirmish between the armies of Qutayba and Ghurak, the Sogdian prince of Samarkand; the Muslims won the engagement and they were able to continue their advance to Samarkand.