On 20 May 2022, amidst the 2022 Sri Lankan protests and political crisis, Nanayakkara was sworn in as the Minister of Labour and Foreign Employment and officially became a member of the Rajapaksa-Wickremesinghe led cabinet, against the wishes of his own party, the Samagi Jana Balawegaya (SJB).[5] He and fellow minister Harin Fernando had subsequently been suspended from the SJB. Both ministers would later resign from their ministerial portfolios on 9 July 2022, but would again be reappointed to their same positions by President Ranil Wickremesinghe on 22 July 2022.[6] A year later, on 18 July 2023, the Working Committee of the SJB expelled Manusha Nanayakkara and Harin Fernando from the party.[7] Shortly afterwards, on 2 August 2023, Fernando and Nanayakkara were readmitted into the United National Party by the party's working committee.[8]
On 9 August 2024, the Supreme Court of Sri Lanka ruled that the decision by the Samagi Jana Balawegaya to expel Manusha Nanayakkara and Harin Fernando from the party was legally valid. As a consequence of this judgement, their expulsion resulted in the loss of their parliamentary seats and ministerial portfolios.[9]
On 20 August 2024, it was announced that Manusha Nanayakkara had been appointed by the President of Sri Lanka, Ranil Wickremesinghe, as the Advisor to the President on Labour and Foreign Employment, with immediate effect.[10]