Randy Edsall, who coached UConn for 12 seasons before leaving in 2010, will return as head coach of the Huskies, the school announced Wednesday.

Edsall coached UConn from 1999 to 2010 before leaving to become coach at Maryland, where he eventually was fired six games into the 2015 season. This season, Edsall has been the director of football research -- special projects for the Detroit Lions.

He left the Huskies immediately after the 2011 Fiesta Bowl, without flying home with the team or ever addressing his players about the departure.

"Certainly as I look back on it, I wish I had done things differently in that instance," Edsall said of his 2011 exit. "I completely understand and respect that there are loyal fans, supporters and former players that still have not forgotten and it will take time to forgive. I have many incredible memories of my time at UConn and I hope the fans do too. It is my goal to get us back to that level of success and I hope that all of the Husky fans out there will be along for the ride."

UConn Football Since 1999 During his first stint in Storrs, Randy Edsall helped lead UConn to a bowl game in each of his final four seasons. Since he left following the 2010 season, the Huskies have won just 24 games while appearing in just one bowl game. 1999-2010 Since 2011 Coaches 1 3 Seasons 12 6 W-L 74-70 24-49 Bowl Games 5 1 -- ESPN Stats & Information

Edsall, who signed a five-year deal with the Huskies, will replace Bob Diaco, who was fired Monday after three seasons. Edsall will receive $1 million base pay, and can earn additional salary incentives based on performance and achievement., the school said. There also will be a $3 million buyout for both the coach and the school, which decreases annually by $1 million over the first three years of the deal.

"Coach Edsall is the right fit for our university, football program and student-athletes," athletic director David Benedict said in a statement. "He led UConn to its most successful period in the history of our football program, and I believe he will provide consistent leadership and long-term success once again."

Current Lions quarterback Dan Orlovsky, who played at UConn, called Edsall's rehiring a good move for the Huskies.

"I went there because of him. He just kind of sold me on, you know, the idea of trying to go do something that most people thought was going to be impossible and just kind of challenged me to see if I could become the player I wanted to be, that kind of thing," Orlovsky said.

"We were really, he was trying to take a program that was a basketball school and a I-AA program and trying to take it to become somewhat of a football school and pull it into a major college football conference and he did it in a short period of time. He's a really good coach, great recruiter. I have really high expectations for him to do a really good job there."

At Maryland, Edsall led the Terps to consecutive bowl bids in 2013-14, the school's first back-to-back winning seasons in 11 years. At UConn, he built the program from the FCS ranks to an FBS independent and eventually competed as a member of the Big East Conference.

Edsall was 74-70 at UConn, tying for a pair of Big East titles and earning the first bowl bids in school history. UConn went to five bowls under Edsall, including the 2011 Fiesta Bowl, the school's only BCS bowl berth in program history.

Edsall is 96-104 overall in 17 years at UConn and Maryland.

Information from ESPN's Mike Rothstein was used in this report.