A longtime member of the Congress Party, he was its president for a time. He had a doctorate in law from Cambridge. He was elected, with support from Congress and leftist groups, as ninth president of India, that role is largely ceremonial, though its powers include discretion in choosing a prime minister if no party has a parliamentary majority.