EAST HARTFORD, Conn. (AP) -C.J. Brown ran for 122 yards and a touchdown and threw for 277 yards and another score on Saturday night as Maryland beat UConn 32-21.

Stefon Diggs had 110 yards receiving, including a 12-yard touchdown for the Terrapins, who improved to 3-0 for the first time since 2001.

Maryland, which led just 13-10 at the half, put up 501 yards of offense, going over 500 yards for the third straight game.

Shakim Phillips caught a career-high 10 passes for 178 yards and a late touchdown for UConn, which fell to 0-2 for the first time since 2002.

It was the first visit to Connecticut for Edsall since he left the school for Maryland after leading the Huskies to the 2011 Fiesta Bowl.

Diggs, who caught five balls, had 98 yards receiving at the half. His 12-yard catch and run in the third quarter capped a four-play 80-yard drive in the third quarter that put the Terps up 20-10.

The Huskies cut the lead to 20-13 on a 34-yard field goal that came after Brandon Ross fumbled the ball at his own 25-yard line.

But Dexter McDougle stepped in front of Geremy Davis on the right sideline, and took an interception back 49-yards across the field for a touchdown to give Maryland some breathing room. It was one of two interceptions on the day for the senior cornerback.

UConn quarterback Chandler Whitmer was 29-of-46 for a career-high 349 yards, a touchdown and those two picks. His intentional grounding penalty in the UConn end zone with just under 9 minutes left, put the Terrapins up by three scores, and put the game out of reach.

Phillips boosted his stats with a late 75-yard touchdown catch and run, but had to be helped off the field after getting injured on the play.

Maryland, which had 576 and 587 yards in its first two games, put up 319 yards of offense in the first half of this one. But mistakes kept them to just 13 points.

The Terps turned the ball over three times in the first quarter in UConn territory, twice failing to convert on fourth-and-1.

Brandon Ross was stuffed for a three yard loss to end the Terps first possession, and UConn responded by going on a six-play 64-yard drive that ended with Lyle McCombs taking a pile of players into the end zone from five yards out. Ross finished with 95 yards rushing. McCombs had 53 for UConn.

Maryland went for it and missed again on fourth-and-1 from the UConn 23, and in between, Brown was picked off by cornerback Taylor Mack on the Huskies 22.

Maryland got on the board in the second quarter when Brown kept the ball on a read option and went 41 yards up the middle of the Husky defense to tie the game, capping a four-play 80-yard drive.

The teams traded field goals to keep the game tied at 10. Chad Christen's 33-yarder was his ninth consecutive successful attempt.

But the Terps put together a 10-play, 86-yard drive just before halftime, settling for a 21-yard field goal after Levern Jacobs stepped out of bounds on a 48-yard reception just before diving into the end zone.