Updated

The Brazilian judge at the center of one of the largest corruption investigations in history said Thursday he would become justice minister in the government of President-elect Jair Bolsonaro, a decision that will be hailed by Brazilians eager for a crackdown on graft but also add to deep polarization after a bruising presidential campaign.

Moro is wildly popular among conservatives and loathed by many on the left, so his decision to join the incoming administration will feed the suspicion of many Brazilians that the judge was politically biased in jailing ex-President Luiz Inacio da Silva, a conviction that forced the poll-leading leftist out of the presidential race.

Moro met with Bolsonaro at the president-elect's home in Rio de Janeiro on Thursday. Upon emerging, Moro did not speak to reporters but soon put out a statement confirming he had accepted the post.

Moro said it would be hard to give up being a judge after 22 years, but he saw an opportunity to "implement a strong agenda of anti-corruption and anti-organized crime" in his new role.

"In practice, this will mean consolidating the advancements against crime and corruption the last years and remove any risks of going backward," he wrote.

He added that the sprawling "Car Wash" investigation would continue in the hands of local judges in the southern city of Curitiba, where Moro lives and many of the cases have been tried. He also said he would provide more details on his new role next week.

Launched in 2014, the "Car Wash" investigation uncovered elaborate schemes in which construction companies received bloated contracts and then kicked back billions of dollars in bribes to politicians and other government officials over more than a decade.

The level of corruption was breathtaking for Brazilians long inured to graft, and led to the jailing of many of the country's biggest names. That list includes da Silva, convicted by Moro of corruption for trading favors with construction company Grupo OAS for the promise of a beachfront apartment. Da Silva began serving a 12-year sentence in April.

The cases made Moro a wildly popular figure with Brazilians exhausted by numerous stories of politicians plundering government coffers; Earlier this year, he tracked highly in presidential polls even though the judge, quiet and wonky, never expressed interest in running.

However, many of his tactics have been highly controversial, such as the use of extended pre-trial detentions and plea bargains, both aimed at getting high-profile suspects to talk.

He has also been accused of being partisan, with supporters of da Silva and the left-leaning Workers' Party claiming Moro was at the center of a conspiracy to keep da Silva from running for president this year. Even after being jailed, da Silva led preference polls. In September, his candidacy was barred.

In reality, Moro has convicted politicians from across the political spectrum. But he has also made decisions that many interpret as biased, such as releasing wiretapped conversations between da Silva and then President Dilma Rousseff in 2016.

For Bolsonaro, a former army captain who ran on promises to crack down on graft and rising crime, landing Moro is a huge boon. But for Moro personally — he now will become "political" as part of an administration — and the future of the "Car Wash" investigations, the decision comes with huge risks.

Members of the "Car Wash" task force have said much work remains, but it's hard to imagine any judge having the gravitas of Moro, who rose to fame because of his ability to sort through complicated white-collar crimes and write decisions that are rarely overturned.