Emmanuel Amunike has broken a 39-year-old jinx to qualify Tanzania for their first ever AFCON finals after win against Uganda at the Benjamin Mkapa National Stadium on Sunday.
Taifa Stars needed to defeat the Cranes and hope that Cape Verde defeats or holds Lesotho to a draw in Praia.
Their qualification was confirmed after the Blue Sharks held Likuena to a goalless stalemate, joining already-qualified Uganda at the Egypt showpiece from Group L.
Tanzania with eight points qualified alongside Uganda with 13 points from Group L.