BALTIMORE -- Navy dominated the time of possession, outgained Maryland by nearly 200 yards and made 15 more first downs.

None of this lessened the enjoyment the Terrapins derived from their 17-14 victory Monday.

Kenny Tate stopped Ricky Dobbs at the goal line with 34 seconds left, and Maryland stunned their in-state rivals to break a seven-game losing streak that began last October.

"Perseverance. That's all we've been preaching all summer," Terrapins linebacker Alex Wujciak said. "We knew we were going to face adversity in a game like this, we knew there would be plays when they gained a lot of yards. We just had to overcome it."

The Midshipmen (0-1) held the ball for nearly 19 minutes longer than Maryland (1-0), amassed 485 yards and collected 26 first downs. But in a game influenced by untimely turnovers and huge penalties, the outcome was decided by a gritty goal-line stand.

Trailing 17-14 with a fourth down at the 1, Navy decided to go for the win. Dobbs took the snap, went to his left and was met by Tate, who would not relent to the momentum Dobbs brought to the line.

"We should have kicked the field goal to send it into overtime," coach Ken Niumatalolo said. "In hindsight, we should have just kicked the ball."

Earlier in the drive, Dobbs was stopped on a third-and-8. But Maryland's Adrian Moten was flagged for grabbing the facemask on the play, and the Midshipmen advanced until Tate's big play.

"I thought I was going to be able to get it outside," Dobbs said. "I felt 100 percent confident that we were going to be able to punch it in."

Coming off a 2-10 season, the Terrapins came in as underdogs against a Navy team that went 10-4 and beat Missouri in the Texas Bowl.

But Maryland raced to a 14-0 lead in the first quarter and then held on behind a defense that repeatedly excelled after Navy got inside the 20.

The Midshipmen had a 7 1/2-minute edge in time of possession in the first half, yet trailed 14-7 after coming up empty on drives of 52, 63 and 66 yards.

In the second half, Dobbs lost a fumble at the Maryland 1 and was stuffed by Tate on the game's pivotal play.

"We had a lot of opportunities," Niumatalolo said. "We left 31 points on the field."

Dobbs ran for 63 yards and a touchdown, but the senior quarterback fumbled three times -- losing two of them at the Maryland 1.

Niumatalolo said, "He's human. He's done some great things for us and won a lot of games for us. We all make mistakes. I made one at the end of the game."

There were plenty by both teams.

"Both of us turned the ball over when we wouldn't want to," Maryland coach Ralph Friedgen said. "Last year, we probably wouldn't have won this game. We found a way to hang in there. Hopefully, this will build confidence and be a positive experience for them."