President Donald Trump couldn't resist needling the media on Friday, even when their costumed children were visiting the Oval Office in celebration of Halloween.

"I cannot believe the media produced such beautiful children," Trump said.

"How the media did this I don't know," he said.

Trump made small talk with the children gathered around his desk and posed for photos.

Trump has one of the most antagonistic relationships with the press of any politician in recent memory, often railing against "fake news" from his Twitter account and complaining of unfair and biased coverage.

WATCH: Pres. Trump talks with the children of reporters during a Halloween event in the Oval Office on Friday. https://t.co/3jaFD2cFLM — NBC Nightly News (@NBCNightlyNews) October 27, 2017

Trump w kids of WH press in Oval Office: "I cannot believe the media produced such beautiful children. How the media did this I don't know." — Sara Cook (@saraecook) October 27, 2017

"I cannot believe the media produced such beautiful children", @POTUS says as the kids of the WH press corps visit the Oval pic.twitter.com/70oPPjOaGj — Alex Romano (@alexromano) October 27, 2017

.@realDonaldTrump meets with children of White House Press. Asks how the media produced such beautiful kids pic.twitter.com/Uh6wJaSyD6 — Toluse Olorunnipa (@ToluseO) October 27, 2017

Trump "I can’t believe the media produced such beautiful children" pic.twitter.com/VjaEnQLhYK — Andrew Beatty (@AndrewBeatty) October 27, 2017