As the final horn sounded and Maryland fans rushed the court to celebrate a rare victory over its bitter rival, weary Duke had just enough energy left to escape the mayhem for the safety of its locker room.

Seth Allen broke a tie by making two free throws with 2.8 seconds left, and the Terrapins stunned the second-ranked Blue Devils, 83-81, Saturday night in College Park, Md., to end a six-game skid in the series.

Coming off a five-day break, Maryland notched its most significant win of the season at the expense of a tired Duke team playing its fourth game in 10 days.

Advertisement - Continue Reading Below

Duke was outrebounded, 40-20, never led in the second half, and got only 4 points and three rebounds from 6-foot-10-inch senior center Mason Plumlee.

‘‘This has been an exhausting schedule for our team,’’ coach Mike Krzyzewski said. ‘‘We’re playing on fumes and I think you could tell that with Mason. I thought he looked exhausted the whole game. He’s been great. Obviously not good tonight.’’

The Terrapins (18-7, 6-6 Atlantic Coast Conference) did not trail after halftime but never could pull away.

Duke (22-3, 9-3) was down by 10 with 3:39 left but pulled even when Rasheed Sulaimon made three foul shots with 16.7 seconds to go. Quinn Cook then fouled Allen as the freshman guard drove through the lane, and Allen made both shots.

After a Duke timeout, Cook’s desperation 30-footer bounced off the back rim.