His family took advantage of the educational facilities provided by the British government but otherwise shunned by the Muslim community. With the assistance of his British teachers and supported by several competitive scholarships, he achieved outstanding examination results, graduating from Calcutta University in 1867, and gaining an MA degree with Honours in history in 1868. The LLB degree followed quickly in 1869.