U.S. President Donald Trump took aim at the United Nations on Tuesday with a sarcastic tirade, dismissing the body as ineffective in promoting peace and ridiculing the state of its headquarters.

"The U.N. has such tremendous potential. I've always said it – it has such tremendous, tremendous potential. But it's not even coming close to living up to it," Trump said in an address in which he complained about a broken escalator at the New York headquarters.

Trump also demanded on Tuesday that European allies immediately stop buying oil from Russia and accused China and India of funding the Ukraine war through their purchases.

"They have to immediately cease all energy purchases from Russia. Otherwise, we're all wasting a lot of time," Trump said.

"I ended seven wars, dealt with the leaders of each and every one of these countries, and never even received a phone call from the United Nations offering to help in finalizing the deal," Trump said.