The Los Angeles-bound Chargers announced Anthony Lynn as their new head coach on Friday.
Lynn served as interim coach of the Buffalo Bills for one week in 2016 when the team fired Rex Ryan and promoted him from offensive coordinator.
In Los Angeles, he will replace Mike McCoy, who the Chargers fired earlier this month following a 5-11 finish.
The team formally announced the hire Friday.
Lynn, 48, has coached in the NFL since 2000.
He has been considered a head coach in waiting for some time and was previously a finalist for jobs in New York, Miami and San Francisco in the last two off-seasons.
This year, he interviewed for the Bills' full-time job, which went to Doug McDermott, along with the Los Angeles Rams and Chargers.
The San Francisco 49ers are the only NFL team remaining without a head coach.
The Bills promoted Lynn to offensive coordinator in September when the team fired Greg Roman after a 1-1 start to the season.
The former NFL running back turned around Buffalo's offense that went on to lead the league in rushing yards and finished 10th in points scored.