Elon Musk has quit the Department of Government Efficiency and bid farewell to the White House just one day after he publicly split with President Donald Trump.

The former First Buddy praised the president in an apparent effort to depart on good terms after he slammed Trump's 'big beautiful bill' and admitted he was disappointed with the treatment his DOGE team had received.

'As my scheduled time as a Special Government Employee comes to an end, I would like to thank President Trump for the opportunity to reduce wasteful spending,' he wrote on X on Wednesday night.

'The DOGE mission will only strengthen over time as it becomes a way of life throughout the government.'

Musk was due to finish up his time at the White House by May 30. His appointment as a Special Government Employee was only temporary and designed to last 130 days.