A Brazilian federal court is sending ex-President Michel Temer back to jail as he is investigated in several cases of alleged corruption.

Temer's lawyer, Eduardo Carnelos, told to Globo Television on Wednesday that he could only "lament" the court's decision. Carnelos said Temer would present himself to authorities Thursday.

Temer was jailed for a few days in March but freed. He denies any wrongdoing.

He became president in 2016 after President Dilma Rousseff was impeached and removed from office for allegedly violating rules on handling federal finances.

During his presidency, Temer was charged by prosecutors with corruption on three occasions. But Congress' lower house never gave its consent to lifting Temer's immunity from prosecution, which Brazil's sitting presidents have.

His immunity ended when he left office Jan. 1.