After 18 months of talks and nearly 20 years of war, the Taliban and the United States have signed an agreement aimed at paving the way for peace in Afghanistan and the departure of foreign troops.

The agreement, as seen by Al Jazeera, is categorised in four main parts. Read the full text below:

Agreement for Bringing Peace to Afghanistan between the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban and the United States of America February 29, 2020

A comprehensive peace agreement is made of four parts:

1. Guarantees and enforcement mechanisms that will prevent the use of the soil of Afghanistan by any group or individual against the security of the United States and its allies.

2. Guarantees, enforcement mechanisms, and announcement of a timeline for the withdrawal of all foreign forces from Afghanistan.

3. After the announcement of guarantees for a complete withdrawal of foreign forces and timeline in the presence of international witnesses, and guarantees and the announcement in the presence of international witnesses that Afghan soil will not be used against the security of the United States and its allies, the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban will start intra-Afghan negotiations with Afghan sides on March 10, 2020, which corresponds to Rajab 15, 1441 on the Hijri Lunar calendar and Hoot 20, 1398 on the Hijri Solar calendar.

4. A permanent and comprehensive ceasefire will be an item on the agenda of the intra-Afghan dialogue and negotiations. The participants of intra-Afghan negotiations will discuss the date and modalities of a permanent and comprehensive ceasefire, including joint implementation mechanisms, which will be announced along with the completion and agreement over the future political roadmap of Afghanistan.

The four parts above are interrelated and each will be implemented in accordance with its own agreed timeline and agreed terms. Agreement on the first two parts paves the way for the last two parts.

Following is the text of the agreement for the implementation of parts one and two of the above. Both sides agree that these two parts are interconnected. The obligations of the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban in this agreement apply in areas under their control until the formation of the new post-settlement Afghan Islamic government as determined by the intra-Afghan dialogue and negotiations.

PART ONE

The United States is committed to withdraw from Afghanistan all military forces of the United States, its allies, and Coalition partners, including all non-diplomatic civilian personnel, private security contractors, trainers, advisors, and supporting services personnel within fourteen (14) months following announcement of this agreement, and will take the following measures in this regard:

A. The United States, its allies, and the Coalition will take the following measures in the first one hundred thirty-five (135) days:

1) They will reduce the number of U.S. forces in Afghanistan to eight thousand six hundred (8,600) and proportionally bring reduction in the number of its allies and Coalition forces.

2) The United States, its allies, and the Coalition will withdraw all their forces from five (5) military bases.

B. With the commitment and action on the obligations of the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban in Part Two of this agreement, the United States, its allies, and the Coalition will execute the following:

1) The United States, its allies, and the Coalition will complete withdrawal of all remaining forces from Afghanistan within the remaining nine and a half (9.5) months.

2) The United States, its allies, and the Coalition will withdraw all their forces from remaining bases.

C. The United States is committed to start immediately to work with all relevant sides on a plan to expeditiously release combat and political prisoners as a confidence building measure with the coordination and approval of all relevant sides. Up to five thousand (5,000) prisoners of the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban and up to one thousand (1,000) prisoners of the other side will be released by March 10, 2020, the first day of intra-Afghan negotiations, which corresponds to Rajab 15, 1441 on the Hijri Lunar calendar and Hoot 20, 1398 on the Hijri Solar calendar. The relevant sides have the goal of releasing all the remaining prisoners over the course of the subsequent three months. The United States commits to completing this goal. The Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban commits that its released prisoners will be committed to the responsibilities mentioned in this agreement so that they will not pose a threat to the security of the United States and its allies.

D. With the start of intra-Afghan negotiations, the United States will initiate an administrative review of current U.S. sanctions and the rewards list against members of the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban with the goal of removing these sanctions by August 27, 2020, which corresponds to Muharram 8, 1442 on the Hijri Lunar calendar and Saunbola 6, 1399 on the Hijri Solar calendar.

E. With the start of intra-Afghan negotiations, the United States will start diplomatic engagement with other members of the United Nations Security Council and Afghanistan to remove members of the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban from the sanctions list with the aim of achieving this objective by May 29, 2020, which corresponds to Shawwal 6, 1441 on the Hijri Lunar calendar and Jawza 9, 1399 on the Hijri Solar calendar.

F. The United States and its allies will refrain from the threat or the use of force against the territorial integrity or political independence of Afghanistan or intervening in its domestic affairs.

PART TWO

In conjunction with the announcement of this agreement, the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban will take the following steps to prevent any group or individual, including al-Qa'ida, from using the soil of Afghanistan to threaten the security of the United States and its allies:

1. The Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban will not allow any of its members, other individuals or groups, including al-Qa'ida, to use the soil of Afghanistan to threaten the security of the United States and its allies.

2. The Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban will send a clear message that those who pose a threat to the security of the United States and its allies have no place in Afghanistan, and will instruct members of the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban not to cooperate with groups or individuals threatening the security of the United States and its allies.

3. The Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban will prevent any group or individual in Afghanistan from threatening the security of the United States and its allies, and will prevent them from recruiting, training, and fundraising and will not host them in accordance with the commitments in this agreement.

4. The Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban is committed to deal with those seeking asylum or residence in Afghanistan according to international migration law and the commitments of this agreement, so that such persons do not pose a threat to the security of the United States and its allies.

5. The Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban will not provide visas, passports, travel permits, or other legal documents to those who pose a threat to the security of the United States and its allies to enter Afghanistan.

PART THREE

1. The United States will request the recognition and endorsement of the United Nations Security Council for this agreement.

2. The United States and the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban seek positive relations with each other and expect that the relations between the United States and the new post-settlement Afghan Islamic government as determined by the intra-Afghan dialogue and negotiations will be positive.

3. The United States will seek economic cooperation for reconstruction with the new post-settlement Afghan Islamic government as determined by the intra-Afghan dialogue and negotiations, and will not intervene in its internal affairs.

Signed in Doha, Qatar on February 29, 2020, which corresponds to Rajab 5, 1441 on the Hijri Lunar calendar and Hoot 10, 1398 on the Hijri Solar calendar, in duplicate, in Pashto, Dari, and English languages, each text being equally authentic.