He was elected as member of
Central Legislative Assembly in 1934. He was elected to the first Lok Sabha from
Tirupathi and to the second Lok Sabha from
Chittoor constituencies in 1952 and 1956 respectively. He was elected in 1952 as the first Deputy Speaker of Lok Sabha with
Ganesh Vasudev Mavalankar as the Speaker. After the death of Mavalankar in 1956, he was elected as Speaker of Lok Sabha. Dowry prohibition act 1961 was passed by joint session of parliament with M. A. Ayyangar as speaker. He worked as
Governor of Bihar between 1962 and 1967. == Later life and death ==