Eric Gordon scored 21 points before being ejected in the fourth quarter and Garrison Mathews added 19 as the Houston Rockets extended their winning streak to seven games with a 114-104 victory over the shorthanded Brooklyn Nets on Wednesday night.

Before the streak, the Rockets dropped their previous 15 games. It's the first time Houston has won seven straight since winning eight in a row in November 2019.

"The adversity that we went through prior to this point has made it even sweeter," coach Stephen Silas said. "We’re feeling pretty good about ourselves."

James Harden had 25 points for the Eastern Conference-leading Nets on a night when NBA leading scorer Kevin Durant and LaMarcus Aldridge both sat out for rest. It was Harden’s second visit to Houston since he was traded in January during his ninth season with the Rockets.

The Rockets led by 17 to start the fourth quarter and the Nets cut the deficit to four before Houston pulled away.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Mathews, who had 12 points in the fourth, scored four in a 5-0 run that extended Houston’s lead to 109-97. Patty Mills made one of two free throws for the Nets before a three-point play by D.J. Augustin made it 112-98 with about two minutes to go.

"When you beat a team like that it means something," Mathews said. "This streak's been a huge boost to our confidence. It’s been a huge boost to our morale."

The loss snapped a six-game road winning streak for the Nets, whose nine road wins are tied with the Suns for most in the NBA.

The Nets shot just 8 of 33 from 3-point range, with Harden going 3 of 12 and finishing 4 of 16 overall. He was 14 for 16 from the line.

"I got the shots I wanted, for sure," he said. "I just didn’t make them."

Harden received a fair number of boos when he was introduced and each time he had the ball early. But he got a warm ovation after a highlight video of his time in Houston was played during a timeout in the first quarter.

He formed his hands into the shape of a heart as he held them over his head and then moved them to his chest and smiled as the crowd cheered.

Harden said playing in Houston will always be meaningful to him.

"Very special," he said. "I spent some of my most amazing years here on the court and off the court."

Cam Thomas had 18 points for Brooklyn, and Mills added 12.

A 10-0 spurt by the Nets got them within four with about 7½ minutes left. Harden capped that run when he made a 3-pointer as he crashed to the court after being fouled by Mathews and made the free throw for a four-point play.

Gordon was ejected soon after that when he received his second technical foul of the game for yelling at the officials about not getting a foul call.

Harden’s free throw after Gordon’s technical cut the lead to four, but a 6-1 spurt by the Rockets, highlighted by a 3 from Mathews, made it 104-95 with 4½ minutes left.

Houston led by as many as 20 and took control of the game with a 37-point second quarter.

The Rockets ended the third quarter on a 6-2 run, punctuated by a one-handed dunk by Kenyon Martin Jr. to make it 90-73 entering the fourth. Houston rookie Josh Christopher stole the ball from Jevon Carter and dished to Martin on the other end, and he sailed over Carter for the slam.

TIP-INS

Nets: Nic Claxton received a flagrant 1 foul for a foul on Mathews in the second quarter. ... Paul Millsap scored 10 points off the bench. ... Claxton had eight points.

Rockets: Jalen Green missed his sixth straight game with a strained left hamstring. ... Kevin Porter Jr. missed his second game in a row with a bruised left thigh. ... Danuel House sat out with a sprained left ankle.

HAPPY BIRTHDAY

Christopher had a career-high 18 points off the bench on his 20th birthday.

"He’s been working at his game day in, day out," Silas said. "He played a really solid game on both ends of the floor."

Asked what it was like to have such a big game on his birthday, Christopher thought for a second before answering.

"Perfect, perfect day," he said.

UP NEXT

Nets: Visit the Atlanta Hawks on Friday night.

Rockets: Host the Milwaukee Bucks on Friday night.