Al Beruni was a historian. He has given a reliable description of the invasions of Mahmud Ghazni and of the prevailing condition in India. He was patronized by Mahmud of Ghazni.