PORTLAND, Ore. (AP) -- Damian Lillard couldn't believe when he got a clear look at the rim.
With the final buzzer about to sound, he took his shot.
''I got my feet squared up and it felt real good leaving my hands,'' Portland's point guard said. ''Once I saw it on line, I said, 'That's got a chance.'''
Lillard's shot fell and the Trail Blazers stunned the Houston Rockets 99-98 to take their playoff series in six games and advance to the Western Conference semifinals for the first time in 14 years.
In the frenzied postgame celebration, Lillard took the public address microphone and shouted ''Rip City!'' The hometown crowd roared.
Portland, making its first playoff appearance since 2011, had been eliminated in the first round in its last six trips, and hadn't advanced to the second round since 2000.
''It's a great feeling,'' said fellow guard Wesley Matthews. ''I'm excited for Portland, of course excited for us. The grind of the season: You're a competitor, you want to win, you want to play, you want to advance, you want to be a champion. ... It's unbelievable.''
Dwight Howard made four consecutive free throws to tie the game at 91 before making a bank shot that put Houston ahead with 3:04 to go. Robin Lopez scored on a tip shot to give the Blazers a 94-93 lead with 2:15 left, setting up a wild finish.
Howard's layup and foul shot put the Rockets back up 96-94 before Nicolas Batum's fadeaway jumper tied it again with 39.9 seconds left. Chandler Parsons scored on a reverse layup with 0.9 seconds left to give Houston the lead.
Lillard prevented the series from going back to Houston with his 3-pointer as time ran out. He finished with 25 points.
The Trail Blazers said Lillard is the first player to make a buzzer-beating shot to win a playoff series since John Stockton's 3 that led Utah over Houston in 1997's Western Conference finals, according to the Elias Sports Bureau.
''He made a hell of a shot,'' Rockets coach Kevin McHale said of Lillard.
Portland will face the winner of the series between San Antonio and Dallas. The Mavericks forced a deciding Game 7 with a 113-111 victory over the Spurs on Friday night. There are five first-round playoff series that have gone to seven games.
LaMarcus Aldridge led the Blazers with 30 points and 13 rebounds. He averaged 29.8 points during the series.
After losing the opening two games in Houston, then claiming one of a pair in Portland, the Rockets staved off elimination with a 108-98 victory on Wednesday night to narrow Portland's advantage in the series to 3-2. Howard had 22 points and 14 rebounds, and Jeremy Lin redeemed himself from a poor performance in Game 4 with 21 points off the bench.
James Harden led the Rockets on Friday night with 34 points. Howard had 26 points and 11 rebounds as Houston - which earned the nickname ''Clutch City'' back in the mid-1990s when the team won back-to-back NBA championships - failed to become the ninth team to come back from a 3-1 deficit in a best-of-seven playoff series and advance.
''It hurts,'' Howard said. ''When you put everything you've got on the floor and somebody hits you with a dagger like that, it's a tough pill to swallow.''
After Lillard's 3, Howard went over to congratulate his friend and told him he was proud of him and to go win the title.
Aldridge helped the Blazers steal the first two games in Houston, scoring 46 points in a 122-120 overtime Game 1 win, then 43 in a 112-105 victory. The Rockets claimed the first of two in Portland, 121-116 in overtime, led by Harden with 37 points. The series' third OT game ended in a 123-120 Blazers win.
Aldridge gave the Rockets credit for making the Blazers better.
''We felt like they definitely helped us grow. We're so young in the playoffs, but they definitely helped us grow and we feel we should be better for the next round,'' Aldridge said. ''We're happy now, but we're not satisfied.''
NOTES: The Blazers honored former coach Jack Ramsay, who led the team to its lone NBA championship in 1977, in a moving pregame ceremony. Ramsay died Monday after a long battle with cancer in Florida. ... A fan at the game held a sign reading: ''Play like it's 1977.'' ... Lillard has multiple 3-pointers in six straight playoff games, a franchise record. ... It was the first time that the Blazers had defeated Houston in the postseason after three previous meetings.