People leave flowers during the September 11 Commemoration Ceremony at the 9/11 Memorial at the World Trade Center on September 11, 2019,in New York.
People leave flowers during the September 11 Commemoration Ceremony at the 9/11 Memorial at the World Trade Center on September 11, 2019,in New York. AFP / Don Emmert

President Donald Trump pledged to hit the Taliban "harder" than ever as America on Wednesday marked the 18th anniversary of the 9/11 attacks that led the country into war in Afghanistan.

Trump's remarks came after he aborted what would have been a historic Afghanistan peace summit, and as relatives remembered the victims of the deadliest terror attacks on US soil at ceremonies in New York and Washington.

Trump spoke at a Pentagon event honoring the nearly 3,000 people killed in the attacks -- announcing an unprecedented escalation of the military assault on the Taliban.

He said that over "the last four days," US forces have "hit our enemy harder than they have ever been hit before and that will continue."

The nature of the offensive was not immediately clear, but Trump said it was ordered after he canceled peace talks with the Taliban over the weekend in retaliation for a bomb attack that killed one US soldier last week.

He also warned militants against ever carrying out an attack in the US again.

"If for any reason they come back to our country, we will go wherever they are, and use power, the likes of which the United States has never used before," Trump said.

"I'm not even talking about nuclear power. They will never have seen anything like what will happen to them," he added.

The warlike comments came as Al-Qaeda, which carried out the attacks, released a video calling for assaults on American, European, Israeli and Russian interests.

The militant group's leader Ayman al-Zawahiri criticized "backtrackers" from jihad in the 33-minute video, according to Site Intelligence Group.

Trump announced on Twitter Saturday that he'd been about to meet leaders of the Taliban -- who harbored Al-Qaeda in Afghanistan -- on Sunday at his Camp David presidential retreat.

The announcement angered some, coming so close to the September 11, 2001 anniversary.

Relatives of victims, survivors, police officers, firefighters and city leaders held a ceremony Wednesday at Ground Zero where planes hijacked by Al-Qaeda operatives brought down the Twin Towers.

'America's heroes'

They held poignant moments of silence at 8:46 am (1246 GMT) and 9:03 am, the precise times that the jets struck the North and South Towers. Silences were also held at the times the 100-storey-plus skyscrapers fell.

In what has become an annual tradition, relatives read out the long list of those who were killed, saying a few words about each victim, in a ceremony that took almost four hours.

"We love you, we miss you and you will always be America's heroes," said one woman after reading out the names of her brother and cousin.

Relatives hugged and consoled each other and left roses at the memorial. Some held up placards with images of their loved ones who were killed.

Bagpipes played as police officers walked into the ceremony carrying the US flag before America's national anthem was played.

New York Governor Andrew Cuomo, Mayor Bill de Blasio, and his predecessors Michael Bloomberg and Rudy Giuliani were among those who attended.

Trump and First Lady Melania Trump welcomed victims' families and survivors to the White House, where they marked the anniversary with a moment of silence before the president delivered his speech at the Pentagon, where he also laid a wreath.

Al-Qaeda hijacked four planes. The third hit the Pentagon and the fourth, Flight 93, crashed in a field in Shanksville, Pennsylvania.

Around 2,400 US soldiers have died in Afghanistan. Some 14,000 US troops remain in the country, a fraction of the peak of about 100,000 in 2010.

Trump has vowed to end the war and bring the remaining US soldiers home.

His abrupt decision to cancel peace talks with the Taliban was followed by the sacking of his controversial national security advisor John Bolton on Tuesday.