Denver Nuggets created history in a tight Game 5 to win the NBA title for the first time in franchise history after defeating Miami Heat 94-89.

With a raucous capacity crowd packed into Ball Arena ready to celebrate, the Nuggets ended a 47-year championship wait taking the best-of-seven series 4-1.

As the Nuggets battled through terrible shooting and a late surge from Miami’s Jimmy Butler to defeat the Heat in a tense Game 5 94-89 triumph, Nikola Jokic led Denver to its first NBA championship in team history.

Jokic led the Nuggets with 28 points and 16 rebounds as they managed to win the series at home despite missing 20 of their first 22 3-point tries and seven of their first 13 free throws.

Butler scored eight baskets in a row to help the Heat rally from a seven-point deficit to lead 87-86 with 2:45 remaining. With 1:58 left, he added two more free throws to help Miami retake the lead. Bruce Brown then scored a tip-in after grabbing an offensive rebound to give the Nuggets a permanent lead.

With 15 seconds remaining and a three-point deficit, Butler jacked up a three, but he missed. For the first time in the team’s 47-year history in the league, Denver won the championship after Brown made two free throws to put the game beyond doubt.

The Heat’s two stars, Butler and big man Bam Adebayo, were both kept under 21 points, while a speculated come-back from Miami’s Tyler Herro—who was injured earlier in the playoffs—never came.

The Nuggets, the NBA’s 22nd most valuable team ($1.93 billion), were the outright favorites before Game 5, by an 8.5 point spread, according to the BetMGM Sportsbook and a moneyline of -210.5, meaning fans betting on the Nuggets would need to bet $210.50 to profit $100.