The United States and the Taliban have signed a peace agreement aimed at ending the 18-year war in Afghanistan, America’s longest.

The signing could help President Donald Trump fulfill a key campaign promise to extract America from its “endless wars.” Under the agreement, the U.S. will begin withdrawing thousands of troops in exchange for Taliban commitments to prevent Afghanistan from being a launchpad for terrorist attacks.

If the Taliban meet their commitments, all U.S. troops would leave in 14 months.

There are about 13,000 U.S. troops in Afghanistan, with that number set to drawdown to about 8,600 in the coming weeks. Further drawdowns are to depend on the Taliban meeting certain counter-terrorism conditions, compliance that will be assessed by the United States.

During a press conference to address the issue of coronavirus, Trump said troops would start coming home from Afghanistan “today.” Officials from the Pentagon, U.S. Central Command and Resolute Support headquarters could not immediately be reached for a response.

Read more: Military Times