After the Indonesian Independence, he became a member of Central Indonesian National Committee (KNIP). In 1946 on the orders of Mr. Amir Syarifuddin, he was arrested by the Indonesian government as he was considered close to the "persautia perjuangan" (Union of struggle) and was considered to be a conspirator involved in the 3 July affair . After being questioned by the Army Court, he was found not guilty. During the Second Dutch Military Aggression, the Dutch arrested and imprisoned him in Ambarawa. He was released after the completion of Dutch-Indonesia Round Table Conference. In 1950, he was appointed a member of the Majelis Permusyawaratan Rakyat (MPR) and Dewan Perwakilan Rakyat (DPR) as Deputy of the Force '45 and became a Deputy Scholar.