The United States marked an unusually somber Independence Day on Saturday, with President Donald Trump bashing domestic opponents and China -- but praising the country's coronavirus response, despite a record surge in cases.

Across the country, virus fears dampened or nixed Main Street parades, backyard barbecues and family reunions on a day when Americans typically celebrate their 1776 declaration of independence from Britain.

US President Donald Trump and First Lady Melania Trump attend 9/11 remembrance ceremonies where Trump says US war on Taliban intensifying
US President Donald Trump and First Lady Melania Trump attend 9/11 remembrance ceremonies where Trump says US war on Taliban intensifying AFP / Nicholas Kamm

Instead of adopting a unifying tone, Trump -- facing a tough re-election and eager to mobilize his political base -- railed against protesters demanding racial justice after unarmed African American George Floyd was killed by a white police officer.

"We are now in the process of defeating the radical left, the Marxists, the anarchists, the agitators, the looters," Trump said.

Protesters raise their fists during a rally against racism in front of the Washington Monument on July 4, 2020, a national holiday darkened by the coronavirus pandemic, continuing racial tensions and angry words from President Donald Trump
Protesters raise their fists during a rally against racism in front of the Washington Monument on July 4, 2020, a national holiday darkened by the coronavirus pandemic, continuing racial tensions and angry words from President Donald Trump AFP / ROBERTO SCHMIDT

Anti-racism protesters who have marched in cities across America are "not interested in justice or healing. Their goal is demolition," he said.

Speaking from the White House lawn, Trump addressed a crowd that included frontline health workers battling COVID-19, which has killed nearly 130,000 Americans.

Police block the entrance to the pier in Manhattan Beach, California, where beaches are closed due to a spike in COVID-19 cases
Police block the entrance to the pier in Manhattan Beach, California, where beaches are closed due to a spike in COVID-19 cases AFP / Robyn Beck

He accused China -- where the outbreak originated -- of a cover-up that allowed the illness to race across the globe, but hailed American "scientific brilliance."

"We'll likely have a therapeutic and or vaccine solution long before the end of the year," he said.

Some of the US leader's sharpest words were for the media, which he accused of a campaign to smear opponents as racists.

Dave Barnes enjoys lunch with his wife Christy Barnes at an outdoor restaurant in Manhattan Beach, California where beaches are closed due to a spike in COVID-19 cases
Dave Barnes enjoys lunch with his wife Christy Barnes at an outdoor restaurant in Manhattan Beach, California where beaches are closed due to a spike in COVID-19 cases AFP / Robyn Beck

"The more you lie, the more you slander, the more you try to demean and divide, the more we will work hard to tell the truth and we will win," Trump said, with four months to go until the election.

A woman sits near her umbrella during a small anti-racism rally near the Washington Monument on July 4, 2020
A woman sits near her umbrella during a small anti-racism rally near the Washington Monument on July 4, 2020 AFP / ROBERTO SCHMIDT

Trump's divisive address came as popular beaches on both coasts -- normally packed on July 4th -- were closed as California and Florida suffer alarming surges in COVID-19 infections. Los Angeles Mayor Eric Garcetti warned citizens to "assume everyone around you is infectious."

While some people are seen walking around 3rd Street Promenade, Santa Monica State Beach and the Pier lie empty on the July 4th holiday amid growing concerns over the spread of the coronavirus in California
While some people are seen walking around 3rd Street Promenade, Santa Monica State Beach and the Pier lie empty on the July 4th holiday amid growing concerns over the spread of the coronavirus in California AFPTV / Loic PIALAT

Florida on Saturday marked a new daily high in confirmed virus cases at 11,458 -- far more than any other state. Miami Beach imposed a curfew and made mask-wearing mandatory in public, yet some Florida beaches remained open.

The beach at New York's Coney Island was also open and crowded, with few wearing masks.

Mark Ruiz came with his wife and two children, despite being "definitely worried" about the virus.

"I just can't stay home on the Fourth of July, I got to take my kids out," he told AFP. "We can't be in a bubble all summer."

Coney Island also hosted a special socially distanced version of the annual Nathan's Hot Dog Eating Contest -- won for the 13th year in a row by Joey Chestnut, who set a new world record downing 75 hot dogs in 10 minutes.

Health officials have been bracing for a new spike in virus cases after this weekend, which they see as a potential tipping point for more infections.

The US virus death toll is fast approaching 130,000, roughly one-quarter the world's total.

Fireworks displays are typically a high point of the holiday, but an estimated 80 percent of the events have been canceled this year.

Washington was hosting a fireworks show on the National Mall, and some said they were compelled to come at a moment when the US is both grappling with the virus and undergoing a historic reckoning on racism.

"It's time for us to stop bragging that we are super special, that the world should follow, we need to look inside to see what's wrong with us. We never honestly asked ourselves about race in this country," 54-year-old Mary Byrne told AFP.

Protests have continued in many US cities since Floyd's killing, and more than a score took place Saturday in Washington.