U.S. soldiers board an Army Chinook transport helicopter after it brought fresh soldiers and supplies to the Korengal Outpost on October 27, 2008 in the Korengal Valley, Afghanistan.

The United States and the Taliban will sign an agreement on Feb. 29 at the end of a week-long period of violence reduction in Afghanistan, U.S. Secretary of State Mike Pompeo and the Taliban said on Friday.

Afghan, international and Taliban forces will observe the reduced violence period beginning at midnight (1930 GMT), an Afghan official and Taliban leaders said earlier.

"Following lengthy negotiations between the Islamic Emirate of Afghanistan and the United States of America, both parties agreed to sign the finalized accord in the presence of international observers," a Taliban spokesman said in a statement.

Both sides would also make arrangements for the release of prisoners, spokesman Zabihullah Mujahid said.

Separately, Pompeo said in a statement that the United States and the Taliban have been engaged in talks to facilitate a political settlement in Afghanistan and to reduce the U.S. presence in the region.

The agreement will be signed upon the successful implementation of an understanding with the Taliban on a significant and nationwide reduction in violence, Pompeo added.

The agreement could represent a chance for peace in the country after years of war and a U.S. troop presence that dates back to 2001.

U.S. and Taliban negotiators have been meeting in Doha since 2018 even though fighting has raged in Afghanistan and thousands of civilians and combatants have been killed as the insurgents have expanded their territorial control.

"Based on the plan, the reduction in violence (RIV) will start between the Taliban and international and Afghan security forces for one week," Javid Faisal, spokesperson for the Afghan National Security Advisor, told Reuters.

"We hope it is extended for a longer time and opens the way for a ceasefire and intra-Afghan talks," he added.

Three senior Taliban leaders — two in Doha and one in Afghanistan — also confirmed to Reuters that they had agreed on a reduction of violence in Afghanistan for seven days starting Friday night. All three spoke on condition of anonymity.