The Blue Devils are now 1-4 and 0-2 in the ACC, while Maryland improves to 4-1 and 1-0 in conference.
The Maryland rushing attack controlled the tempo in the second half as the Terrapins outgained Duke on the ground 124-48 and won the time of possession battle 31:10-28:50.
Early in the third quarter Maryland took a 14-9 lead, its first of the game, thanks to an 84-yard punt return touchdown by Tony Logan.
The Terrapins added to their lead in the fourth quarter thanks to a 71 yard catch and run by Da'Rel Scott. The Scott touchdown gave the Terrapins a 21-9 lead with 13:48 left in the game.
Maryland did its best to milk the clock as much as possible in the final quarter, as running backs Scott and Davin Meggett finished with a combined 32 carries for 113 yards.
Duke though never gave in, as Abraham Kromah fueled the defense with 15 tackles, nine solo and two for a loss, while the offense put together a 10 play 84 yard scoring drive with 7:20 remaining. Renfree's 35-yard pass to Varner on fourth and 19 set up a two-yard touchdown pass to Brandon King pulling Duke within five.
But Maryland's defense would hold on Duke's final offensive possession before running out the clock.
The Blue Devils got out of the gates to an early 9-0 lead thanks to field goals of 20, 40 and 34 yards from Will Snyderwine.
Following a Maryland punt on their opening possession, the Blue Devils, with both Renfree and Brandon Connette taking snaps, moved the football 86 yards over 13 plays resulting in Snyderwine first field goal of the game.
Duke picked up three third downs on the drive with Renfree completing a strike over the middle to Donavon Varner for 28 yards, a 17 yard run by Connette and Josh Trezvant catching a 25 yard pass from Renfree on third and 10 to put Duke on the Maryland six-yard line.
Duke's second possession of the game saw Snyderwine connect on his second field goal to put the Blue Devils up 6-0. Duke moved the football 59 yards on the drive, with Austin Kelly, Varner and Conner Vernon all making grabs.
Kelly finished with six catches for 60 yards, while Vernon hauled in six for 99.
Duke capped off its third consecutive scoring drive of the game with another Snyderwine field goal. This time, the redshirt junior made a 34 yard kick to put the Blue Devils up 9-0.
Renfree was looking to lead the Blue Devils on their fourth straight scoring drive, but the redshirt sophomore was intercepted by Antwine Perez at the goal line resulting in an 80 yard Maryland scoring drive for the game's first touchdown.
Meggett ran the ball into the end zone from the six-yard line making the score 9-7 just before the half.
The Duke defense held the Terrapins to 132 yards of offense in the first half, while the Blue Devils accumulated 227 yards of offense in the opening 30 minutes. The Blue Devils would also outgain Maryland in total yards for the game 399-294.