He served as the sixth President of India from 1977 to 1982.