It was a fitting final act to help dispel the memories of Qatar's World Cup, when they lost all three games, the worst record of any host in the competition's history.
Jordan were in their first Asian Cup final and contesting the biggest game in their history. They fell behind midway through the first half when forward Afif held his nerve with a penalty for his sixth goal of the tournament.
Qatar got their half-time lead but Jordan roared back to equalise through Yazan Al-Naimat's smart finish. The underdogs were level however for just six minutes, Afif slotting home once again from the penalty spot.
This time there was to be no Jordan comeback and Afif scored again from the spot for his hat-trick in injury time, again after a VAR intervention. At the final whistle the triumphant Qatari substitutes raced from the bench and threw Afif in the air.