He appointed Chief Justice in Muradabad and later was transferred to Ghazipore. In 1864 he was transferred to Aligarh where he played an important part in establishing a new college. In 1876 he retired cork in the law to concentrate on running the college and to devote himself to improving the positions of Muslims in the sub-continent through education. Aligarh became the centre of a ‘Muslim renaissance’.