The Seahawks and Baltimore Ravens defensive coordinator Mike Macdonald have agreed to a deal to make him their next head coach, sources told ESPN’s Adam Schefter on Wednesday.

Macdonald is receiving a six-year contract, sources told Schefter.

The Seahawks moved to hire Macdonald after meeting with him for a second time Wednesday, a day after their initial interview in Baltimore.

Macdonald, 36, becomes the NFL’s youngest head coach and brings to Seattle a reputation as one of the league’s brightest defensive minds, having led the Ravens to No. 1 in points allowed, sacks and takeaways in 2023, his second season as Baltimore’s coordinator.

Seahawks leadership, including general manager John Schneider, met with Macdonald for the first time Tuesday. A day earlier, Seattle held a second, in-person interview with Detroit Lions offensive coordinator Ben Johnson, who later told the Seahawks and the Washington Commanders — the last two teams that had head-coaching vacancies — that he was remaining in Detroit, sources told Schefter.

Mike Macdonald is the fifth Ravens defensive coordinator to become an NFL head coach. Three of the previous four went on to make multiple playoff appearances.

In replacing 72-year-old Pete Carroll with 36-year-old Macdonald, the Seahawks are going from the NFL’s oldest head coach to its youngest. Macdonald is 16 months younger than Jerod Mayo, who was hired by the New England Patriots earlier this month to succeed Bill Belichick.

Macdonald was one of the most targeted head-coaching candidates this year. He interviewed with six teams for their vacancies: the Seahawks, Atlanta Falcons, Carolina Panthers, Tennessee Titans, Los Angeles Chargers and Commanders.

To replace Macdonald as defensive coordinator, the Ravens have many options on their current staff to promote. Assistant head coach and defensive line coach Anthony Weaver, defensive backs coach Dennard Wilson, inside linebackers coach Zachary Orr and defensive pass game coordinator Chris Hewitt are all candidates in Baltimore after interviewing for defensive coordinator positions with other NFL teams this offseason.

Orr also is considered a candidate to become the Seahawks’ defensive coordinator, a source told ESPN. Orr, a former NFL linebacker, spent the past two seasons working with Macdonald in Baltimore.

Macdonald got his start in the NFL as a coaching intern with the Ravens in 2014 after four seasons coaching at the University of Georgia, his alma mater. He spent seven seasons on Baltimore’s staff during his first stint with the team, also serving as a defensive assistant (2015-16), defensive backs coach (2017) and linebackers coach (2018-20) under John Harbaugh before Harbaugh’s brother, Jim, hired Macdonald to be the University of Michigan’s defensive coordinator in 2021.

Macdonald returned to Baltimore to coordinate the Ravens’ defense in 2022. Over Macdonald’s two seasons in that role, Baltimore has allowed the second-fewest points (17.5) and the sixth-fewest yards (312.8) per game while ranking first in ESPN’s defensive efficiency metric. In 2023, the Ravens became the first team in NFL history to lead the league in fewest points allowed (16.5), most sacks (60) and most takeaways (tied for first at 31) in the same season.

Macdonald will become the eighth full-time head coach in Seahawks history. His hiring comes exactly three weeks after Carroll’s 14-year run in Seattle ended with team owner Jody Allen announcing that Carroll would no longer coach the team, instead moving into a yet-to-be-determined advisory role within the organization. Carroll had final say over personnel decisions, power that now belongs to Schneider.

The Seahawks conducted initial interviews with a reported nine candidates and held second, in-person interviews with most of them: New York Giants offensive coordinator Mike Kafka, Las Vegas Raiders defensive coordinator Patrick Graham, Dallas Cowboys DC Dan Quinn, Carolina Panthers DC Ejiro Evero, Johnson and Macdonald.