WASHINGTON: US President Donald Trump vowed to support and defend religious liberty, telling a gathering of evangelical Christians that the threat of terrorism is “one of the most grave and dire threats to religious freedom in the world today.”

“We cannot allow this terrorism and extremism to spread in our country, or to find sanctuary on our shores or in our cities,” Trump said Saturday night at a “Celebrate Freedom” concert honoring veterans.

“We want to make sure that anyone who seeks to join our country shares our values and has the capacity to love our people.”

The evangelical mega church First Baptist Dallas and Salem Media Group sponsored the event at the John F. Kennedy Center for the Performing Arts. First Baptist Pastor Robert Jeffress was a strong backer of Trump during the 2016 campaign.

The event at times felt like one of Trump’s signature campaign rallies, with the president promising an adoring crowd that America would “win again” and prompting cheers with attacks on the news media.

Using the podium again to lash out at the news media, Trump worked to energize evangelicals in his political base, noting that the US currency was inscribed with the words: “In God We Trust.”

“Since the signing of the Declaration of Independence 241 years ago, America always affirmed that liberty comes from our creator. Our rights are given to us by God, and no earthly force can ever take those rights away,” he said.

“Not only has God bestowed on us the gift of freedom, he’s also given us the gift of heroes willing to give their lives to defend that freedom,” he said.

Part of his strategy to connect with his supporters has included criticizing the media, and he included harsh words for the press again in his remarks.

“The fake media tried to stop us from going to the White House, but I’m president and they’re not,” he said.

Trump appeared on a stage decorated with a massive American flag. Choirs performed “The Battle Hymn of the Republic” and other hymns and debuted a song with the lyrics “make America great again” — Trump’s campaign slogan.

Besides speaking to the event’s religious theme, Trump honored military veterans and renewed his campaign promise to always take care of America’s veterans.

The president praised veterans from each of the US military branches and highlighted his administration’s work to reform veterans’ services.

Overwhelming support from evangelical voters helped propel Trump to victory in 2016. Since he took office, Christian conservatives have been overjoyed by Trump’s appointment of Justice Neil Gorsuch to the Supreme Court and his executive order ordering the Internal Revenue Service (IRS) to ease up on a rarely enforced limit on partisan political activity by churches.

Trump was spending the pre-Independence Day weekend at his golf club in Bedminster, New Jersey, but traveled back to Washington for the event.

Attendees at the event for veterans waved miniature American flags from their seats in the theater and raised their hands as a sign of praise while a large choir sang ahead of Trump’s remarks.

Trump has held campaign-like rallies regularly during his first few months in the White House and kicked off his own re-election campaign far earlier than other incumbents in recent history.