Former Washington offensive coordinator Sean McVay became the youngest head coach in modern NFL history on Thursday.

McVay, 30, was hired as the head coach of the Los Angeles Rams, the team announced, leaving the 49ers as one of just two teams with a head-coaching vacancy.

McVay is the grandson of longtime 49ers executive John McVay, an inductee into the organization’s Hall of Fame. The 49ers interviewed McVay on Monday.

The new Los Angeles Chargers, who announced their move from San Diego early Thursday, are the only other NFL team without a head coach.

The 49ers are concurrently conducting a general manager search, along with pursuing a head coach. The 49ers will have their fourth head coach in the past four seasons after going 2-14 and firing Chip Kelly after just one season.

New England Offensive coordinator Josh McDaniels, Atlanta offensive coordinator Kyle Shanahan and Anthony Lynn, who finished the season as Buffalo’s interim head coach, are the remaining candidates among those who have interviewed for the head-coaching job.

Club executives Jed York and Paraag Marathe are scheduled to interview Arizona vice president of player personnel Terry McDonough for the general manager position on Friday.

On Sunday, the 49ers are scheduled to interview Seattle offensive line/assistant head coach Tom Cable for the head-coaching position. The following day, the Seahawks’ co-directors of player personnel Scott Fitterer and Trent Kirchner will interview for the GM job.