Erik Spoelstra and the Miami Heat have agreed to a long-term contract extension that takes him through the 2024-25 season, league sources told Adrian Wojnarowski of ESPN.

Spoelstra is beginning his 12th season as head coach of the Heat, replacing Pat Riley in 2008. 

He is the second-longest-tenured active head coach after Gregg Popovich.

Spoelstra had just one season remaining on his existing deal.