WASHINGTON (AP) — The final buzzer sounded, and Maryland's players stormed the court to celebrate an improbable win over neighboring Georgetown.

It didn't matter that it was only the second game of the season, or that neither team was ranked. The Terrapins had just erased a nine-point deficit over the span of 2 ½ minutes, and it was time to revel in the moment.

"We just kept fighting," said Maryland guard Melo Trimble, who capped a 22-point performance by sinking two free throws with 7.6 seconds remaining in a 76-75 victory Tuesday night.

Georgetown led 68-59 with 2:21 to go before the Terrapins used a game-ending 17-7 run.

"We beat a great team tonight," Maryland coach Mark Turgeon said. "Except for fouling, we really guarded well."

Maryland (2-0) limited the Hoyas (1-1) to 16 field goals but was outscored 37-17 at the foul line. The Terps won despite going 7 for 27 from beyond the arc and being whistled for 32 fouls.

It was 75-72 when Trimble scored on a drive to get Maryland within a point. Tre Campbell then stepped out of bounds for the Hoyas after being pressured in the back court.

"This is how crazy basketball is: I'm yelling foul at the top of my lungs, and he steps out of bounds," Turgeon said. "We were very fortunate tonight."

Trimble was subsequently fouled while receiving the long inbound pass, made both foul shots, and Terps freshman Kevin Huerter blocked a driving shot by Jagan Mosely just before the final buzzer.

While the Terrapins celebrated, the Hoyas somberly trudged off the court.

"We have to grow. We have to get better. We have to learn from our mistakes," coach John Thompson III said. "Just too many mental errors down at the end."

L.J. Peak scored 19 of his 22 points in the second half for Georgetown and Rodney Pryor added 14.

THE RIVALRY RENEWED

Maryland beat the Hoyas 75-71 last season and, with this victory, leads the series 38-27. This marked the first time Georgetown hosted Maryland since the 1993-94 season, even though the schools are only 20 miles apart.

FAB FRESHMEN

Maryland received a huge contribution from its first-year players. In addition to getting a huge defensive play from Huerter, the Terps got 17 points from Justin Jackson and 11 from Anthony Cowan, including four free throws in the final 19 seconds.

MELO SHINES

Trimble scored 22 points in Maryland's opener, an unimpressive 62-56 win over American that dropped the Terrapins out of the top 25.

Maryland needed every one of his 22 points against Georgetown.

"He's an outstanding player," Thompson said. "He did what good players do — he made plays."

BIG PICTURE

Maryland: The Terps showed vast improvement from their disappointing showing against American, providing evidence that this freshman-laden team will get better as the season progresses.

Georgetown: The Hoyas received an ideal tune-up for the rigorous, physical play that lies ahead in the Big East. Georgetown's 37 for 42 showing at the foul line showed it knows how to take advantage of an overly aggressive defense. They do, however, need work at closing games.

UP NEXT

Maryland resumes play Thursday night at home against St. Mary's (Md.) College, a Division III school that competes in the Capital Athletic Conference.

Georgetown faces visiting Arkansas State on Thursday night at McDonough Arena, the team's on-campus facility.