Bill Hamid played for D.C. United from 2010 to 2017. (Ron Schwane/Associated Press)

D.C. United reacquired goalkeeper Bill Hamid on a 1 1/2-year loan from Danish club Midtjylland, the MLS club announced Wednesday.

Hamid, a 2006 All-Met at DeMatha who’s from Annandale, played for United from 2010 to 2017, making 184 MLS regular season starts. In 2014, he was the MLS Goalkeeper of the Year.

Last winter, the 27-year-old opted to pursue opportunities in Europe. With Midtjylland, however, Hamid never earned regular playing time. He started one league game while serving as the backup 19 times. After Hamid left United, the MLS club retained his rights because it had offered him a new contract. He is under contract through the 2021-22 season.

“Bill moved to FC Midtjylland at the end of last year and it was an important step in his personal and professional development,” United GM Dave Kasper said in a statement. “He’s a major part of the fabric of this club with his local ties, homegrown history and on-field accomplishments. Bringing him back on loan is a great acquisition as we make a push for playoffs at Audi Field. He’s a leader on and off the field and we’re excited to welcome him back to the club he worked tirelessly for over eight seasons.”

United attempted to buy Hamid through a transfer fee, but could not reach a deal with the Danish club. United instead acquired the goalkeeper through a loan. He will arrive this week.

So far this season, United has primarily used goalkeeper David Ousted, who was traded from Vancouver in January. Steve Clark, the backup goalkeeper, has started three MLS matches this season. While the club has fielded offers for both, there is enough roster room to keep the two players if necessary.

United has conceded 36 goals this season, sixth-most in the 11-team Eastern Conference.

The MLS trade and transfer window closes Wednesday night. The club continues to seek back-line help, but even after Wednesday, the club has several more weeks to sign free agents.

Steven Goff contributed to this report.