Presidents Ashraf Ghani of Afghanistan and Donald Trump of the US discussed over phone the war against terrorism, the Afghan presidential palace said on Friday.

The two leaders on Thursday night also discussed the security situation in Afghanistan and economic affairs, Xinhua news agency quoted the palace as saying.

"They also discussed cooperation between the two nations, based on shared interests and risks," a presidential palace statement said.

Ghani told Trump that Afghan security forces, after taking full responsibilities from the US and NATO forces, were ready to defend their country.

According to the statement, the two leaders will soon meet.