President Trump confronted NATO chief Jens Stoltenberg Wednesday over the energy agreements several European countries have with Russia.

The president wanted to know why the U.S. was continuing to pay money to the group when some countries in the alliance are buying energy from Moscow.

"You know, NATO is an alliance of 29 nations, and there are sometimes differences and different views, and also some disagreements. And the gas pipeline from Russia to Germany is one issue where allies disagree," Stoltenberg said.

"But the strength of NATO is that despite these differences, we have always been able to unite around our core task, to protect and defend each other, because we understand that we are stronger together than apart," he added.

But that didn’t satisfy Trump.

“But how can you be together when you’re getting energy from the group you want protection from?” he asked.

The president pointed to Germany as an example and said the country was “totally controlled” by and “captive to Russia” over the Nord Stream 2 pipeline project, which would “double the amount of gas Russia can send directly to Germany, skirting transit countries such as Ukraine,” FoxNews.com reports.

"So we're supposed to protect you against Russia but they're paying billions of dollars to Russia and I think that's very in inappropriate," Trump said. "And the former Chancellor of Germany is the head of the pipeline company that is supplying the gas. Ultimately, Germany will have almost 70% of their country controlled by Russia with natural gas. So you tell me, is that appropriate? I've been complaining about this from the time I got in."

Trump said the U.S. wouldn’t tolerate countries like Germany that are only spending a little more than 1 percent of their GDP whereas the U.S. “in actual numbers is paying 4.2% of a much larger GDP,” he said. The president argued this is not fair to U.S. taxpayers and “we're not going to put up with it.”

Bilateral Breakfast with NATO Secretary General in Brussels, Belgium... pic.twitter.com/l0EP3lzhCM — Donald J. Trump (@realDonaldTrump) July 11, 2018

See the transcript below: