# Football at the 1987 All-Africa Games – Men's qualification

The men's qualification for football tournament at the 1987 All-Africa Games.

## Qualification stage
### Zone I (North Africa)

Libya and Morocco withdrew.
Algeria withdrew in protest of CAF's decision to order a replay of the first leg following Tunisia's protest that Algeria had fielded two professional players (Rabah Madjer and Chérif Oudjani).
CAF also rescinded an earlier decision to appoint Algeria as the replacement host of the 1988 African Cup of Nations finals (replacing original host Zambia), and awarded them to Morocco instead.
Tunisia qualified.
| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Tunisia | w/o | Algeria | 0–2 | — |

### Zone II (West Africa 1)
#### First round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Guinea | w/o | Gambia | — | — |
| Senegal | bye | | | |

#### Second round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Senegal | – | Gambia | – | – |
Senegal qualified.

### Zone III (West Africa 2)
#### First round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Ivory Coast | 4–2 | Liberia | 2–1 | 2–1 |
| Ghana | – | Benin | – | – |
| Togo | w/o | Burkina Faso | — | — |
| Nigeria | bye | | | |
Ivory Coast advanced to the second round.
Ghana advanced to the second round.

#### Second round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Nigeria | 0–1 | Ivory Coast | 0–0 | 0–1 |
| Ghana | 4–1 | Togo | 3–0 | 1–1 |
Ivory Coast advanced to the third round.
Ghana advanced to the third round.

#### Third round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Ghana | 1–3 | Ivory Coast | 1–2 | 0–1 |
Ivory Coast qualified.

### Zone IV (Central Africa)

Qualifying tournament of Zone IV was combined with the 1987 Central African Games football tournament.
Cameroon qualified.

### Zone V (East Africa)

Somalia withdrew.

#### First round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Egypt | w/o | Uganda | — | — |
| Tanzania | w/o | Ethiopia | — | — |

#### Second round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Tanzania | 2–10 | Egypt | 2–4 | 0–6 |
Egypt qualified; In addition, Kenya qualified as hosts.

### Zone VI (Southern Africa)
#### First round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Malawi | 2–2 (4–2 p) | Zimbabwe | 1–1 | 1–1 |
| Mozambique | bye | | | |
| Swaziland | bye | | | |
| Zambia | bye | | | |
Malawi advanced to the second round.

#### Second round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Swaziland | 2–9 | Malawi | 1–3 | 1–6 |
| Zambia | w/o | Mozambique | — | — |
Malawi advanced to the third round.

#### Third round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Zambia | 3–3 (a) | Malawi | 3–1 | 0–2 |
Malawi qualified.

### Zone VII (Indian Ocean)
#### First round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Djibouti | w/o | Madagascar | 1–7 | — |
| Seychelles | 1–4 | Mauritius | 1–2 | 0–2 |
Madagascar advanced to the second round.
Mauritius advanced to the second round.

#### Second round

| Team 1 | Agg.Tooltip Aggregate score | Team 2 | 1st leg | 2nd leg |
| Madagascar | 3–3 (4–2 p) | Mauritius | 2–1 | 1–2 |
Madagascar qualified.

## Qualifying teams

The following countries have qualified for the final tournament:
| Zone | Team |
| Hosts | Kenya |
| Zone I | Tunisia |
| Zone II | Senegal |
| Zone III | Ivory Coast |
| Zone IV | Cameroon |
| Zone V | Egypt |
| Zone VI | Malawi |
| Zone VII | Madagascar |