On 22 June 2018, after being approached and supported by the People's Liberation Party (PLP), Costa was sworn in as Minister of Justice of the VIII Constitutional Government, under Prime Minister Taur Matan Ruak.