The first census of India was taken in 1872 during the reign of British Viceroy Lord Mayo.