US President Donald Trump sang the praises of the military and American heroes of the past 250 years as he skirted politics in a rousing Independence Day speech in Washington.

"What a great country," Mr Trump exclaimed. "For Americans, nothing is impossible."

As combat aircraft, including the rarely seen B2 stealth bomber flew overhead, Mr Trump scrolled through myriad events of US history, from groundbreaking inventions to battlefield victories, drawing cheers of "USA! USA!" from an enthusiastic rain-soaked audience of tens of thousands on the National Mall in Washington.

In front of the statue of Abraham Lincoln,  Mr Trump used the traditionally politics-free holiday to deliver shoutouts to each arm of the military, as well as singling out first responders and the controversial Border Patrol and Immigration and Customs Enforcement agencies that have been criticised for their treatment of migrants.

But he disappointed critics who had warned that Mr Trump, the first president in decades to make a keynote speech on the 4 July holiday, was hijacking the celebration to bolster his own political standing and attack Democratic rivals.

Instead, in a trickling rain, he repeatedly ascribed a singular greatness to the country, declaring it "the most exceptional nation in the history of the world."

He said: "Today, we come together as one nation with this very special Salute to America. We celebrate our history, our people, and the heroes who proudly defend our flag - the brave men and women of the United States military!

"Our nation is stronger today than it ever was before. It is its strongest now".

Surrounded by the top officers of the Pentagon, as well as invited Republican officials and VIP donors, the event allowed Mr Trump to stake a strong claim to patriotic fervour 16 months ahead of a presidential election with polls showing his potential Democratic rivals holding a significant edge over him.

Mr Trump originally wanted a grand military parade for the holiday, ostensibly inspired by France's rollout of its military might on Bastille Day.

But instead, he got a scaled-back version, with some US armoured vehicles parked for display and a flyover by Air Force One, the B2 bomber, attack helicopters, and the Navy's Blue Angels flying team.

It was a military show that has been absent from the US capital for decades, and Mr Trump's opponents criticised it ahead of time as a show of militarism.

"What, I wonder, will Donald Trump say this evening when he speaks to the nation at an event designed more to stroke his ego than celebrate American ideals?" said leading Democratic White House contender Joe Biden in a speech in Iowa earlier in the day.

We need your consent to load this rte-player contentWe use rte-player to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences