Egypt have beaten Senegal in the 3rd place play-off at the African U23 championship, to claim the final African automatic spot for the Olympic Games in London next year. The BBC's Nick Cavell is in Morocco, where the tournament is taking place. Here is how the match unfolded. The game is followed at 1730 by the final between Morocco and Gabon. All times GMT.
Final score: Egypt 2 - Senegal 0
1623 It's all over. Egypt beat Senegal 2-0 and will be at the London Olympic Games next year. Senegal's final chance is next year in a play-off against an Asian side. Reaction to follow.
1619 There will be four minutes of injury time - I think Egypt are going to the Olympic football for the first time since 1972!
1613 Senegal close again as captain Badji thumps the ball from outside the area it goes just over the bar. 5 minutes to go - time running out for them.
1609 Just 10 minutes left and it's still Egypt 2 Senegal 0. Senegal are struggling to threaten but if they get a goal it will be interesting!
1600 Final roll of the dice for Senegal as they make their 3rd sub Tendeng comes on for Niasse.
1559 Senegal think they have scored but Wade is flagged offside he gets a yellow for booting the ball in the air in frustration.
1558 GOAL! Egypt stretch their lead and close in on London. Saleh Gomaa cuts in from the left and shoots low and hard from just outside the area.
1553 Senegal come close as Wade gets on the end of a cross from Niasse but goes wide with help from the keeper.
1543 Senegal are pushing for an equaliser as the Egypt defence scramble the ball behind for a corner. Seck heads wide moments later.
1541 A few more fans are coming in to the ground ahead of the final between Morocco and Gabon later - but this one has yet to really spring into life despite there being an Olympic place at stake. Senegal trying to get back into it - their captain fires just over the bar after a lay off from Oumar Niasse.
1535 Senegal change at half-time with Khassim Soumare on for Abdoulaye Sane - second half is underway.
1519 Half-time. Egypt lead 1-0. Both sides have steadily improved - Senegal have pushed forward after going a goal down, but so far El Shenawi has dominated his area well and not come close to conceding.
1516 News from the Cecafa Cup - Uganda are the winners after that penalty shoot-out against Rwanda!
1509 Senegal captain Stephane Badji swings in a free kick and El Shenawi is forced to tip it behind, he then deals with a succession of crosses. Getting more exciting now we've had a goal!
1506 Egypt goal comes from a mix up in the area as 2nd choice Senegal keeper Camara fails to hold the ball and Abdel Baset pokes the ball home. Egypt in pole position to qualify for the Olympics.
1503 GOAL! Egypt take the lead!
1458 Abdoulaye Ba takes a free kick from outside the area but its straight at Ahmed El Shenawi - not a great game so far.
1450 After 20 minutes its still goalless. Egypt a bit stronger going forward and coping well in defence too with Senegal's attacks.
1448 Tense is Dar-es-Salaam - the final of the Cecafa Cup has gone to penalties... stay tuned for news!
1443 After the excitement of the last semi-final this is a bit stale. The ball is stuck in midfield, Egypt slightly stronger going forward.
1438 First real effort - Egypt's Mohamend Salah shoots from outside the area but its an easy save for Demba Camara.
1430 Right we're underway in Marrakesh with a place at the London Olympics at stake.
1426 Teams coming out just now - need to be quick to do the anthems if we're to get underway on time! Egypt are unchanged for this match: El Shenawi (GK), Fathy, El Henawy, Hegazi, Gomaa, Mohsen, Salah, Hassan, El Neny, Baset, Gaber.
1412 Other action taking place around Africa today and in Dar-es-Salaam it's into extra-time in the final of the Cecafa Cup between Uganda and Rwanda. 2-2 the score after 90 minutes - we'll let you know how it turns out.
1410 Full Senegal team: Camara (GK), Ciss, Gueye, Sane, Mbodji, Gassama, Ba, Wade, Seck, Badji, Niasse. Nick confesses he hasn't eaten - and there's no food in the stadium to buy... could be a long day for our man.
1405 Senegal team news: two changes from the semi-final. Keeper Mane on bench with slight knock. In comes Camara. Wade back from suspension for Fall.
1400 Not a big crowd as yet - hoping there'll be more people for the final later, when the home team play - but this is the most important game, because the winner will be certain of a place in the Olympic Games in London. The loser has to go to another play-off, this time against an Asian side.