Soon after his release in 1955, he set up the
Partai Rakyat Malaya with other independent fighters on 11 November 1955. Inspired by the anti-colonial and socialist struggle in
Indonesia led by
Sukarno, the party in its formative years subscribed to a
pan-Malay/Indonesian nationalism. Unlike its contemporary
UMNO (which ruled the country uninterrupted from independence until 2018), Parti Rakyat demanded total independence from British colonialism. In the 1959 elections he contested and won the Setepak parliamentary seat. In a three-way contest, he defeated
Aishah Ghani of UMNO/
Alliance and independent Yap Kim Swee, winning the seat by a margin of 2,096 votes. In 1963, soon after the outbreak of the
Konfrontasi between
Malaysia and
Indonesia, the
Alliance government began massive round-ups of left-wing politicians and activists among the opposition. He managed to contest the
Langat seat in Selangor in the 1964 elections but lost heavily to Umno's Zakaria Mohd Taib. He was among those arrested and detained in the mid 1960s, alongside
Ishak Haji Muhammad,
Abdul Aziz Ishak,
Kampo Radjo,
V. David,
Tan Kai Hee, Tan Hock Hin,
M.K. Rajakumar,
Karam Singh Veeriah, Hasnul Hadi, Tajuddin Kahar and hundreds of others. The Socialist Front eventually dissolved under strong state repression and local council elections were abolished. Parti Rakyat became a fringe party in parliamentary politics and following his release from detention, Boestamam was removed as party leader by a group led by
Kassim Ahmad. He then merged Parti Marhaen into
Pekemas but that party also floundered, winning only one seat in the 1974 elections. He took over the Pekemas party presidency from
Tan Chee Khoon but left soon after. ==Legacy==