Malawi beat Benin 4-3 on post-match penalties to advance to the group stage of the 2015 Africa Cup qualifiers.
The two-legged second round qualifier ended 1-1 on aggregate forcing the tie to be decided via penalties at Kamuzu Stadium in Blantyre on Saturday.
In normal time, midfielder John Banda put Malawi back into the contest after netting a superb 19th minute scissors kick to level the tie.
And in the penalty shoot out it was Malawi who kept their cool converting all their spot kicks.
However, Benin captain Stéphane Sessègnon stepped up for the first spot kick that was saved by Malawi goalkeeper Macdonald Harawa who went on to deny the visitors twice.
Malawi advance to Group B to join Mali, Ethiopia and 2014 FIFA World Cup finalists Algeria.
The Flames face Mali in their opening Group B match during the weekend of September 6 in Bamako.