US President Donald Trump on Tuesday sacked national security adviser John Bolton.

"I told John Bolton last night that his services are no longer needed at the White House," Trump wrote in a tweet on Twitter.

"I thank John very much for his services. I will appoint a new national security adviser next week."

But Bolton also said in a tweet on Twitter that he had offered to "resign last night and President Trump said (let's talk about it tomorrow)."