Azad remained a close confidante, supporter and advisor to prime minister Nehru, and played an important role in framing national policies. Azad masterminded the creation of national programmes of school and college construction and spreading the enrolment of children and young adults into schools, to promote universal primary education. Elected to the lower house of the Indian Parliament, the Lok Sabha in 1952 from Rampur District cum Bareilly district West lok sabha seat and again in 1957, Azad supported Nehru's socialist economic and industrial policies, as well as the advancing social rights and economic opportunities for women and underprivileged Indians. In 1956, he served as president of the UNESCO General Conference held in Delhi. Azad spent the final years of his life focusing on writing his book "India Wins Freedom", an exhaustive account of India's freedom struggle and its leaders, which was published in 1959.