The BBC has secured a deal to show the Olympics until at least the 2024 summer Games.
The corporation has agreed to sub-licence the free-to-air TV rights plus digital rights from Discovery Communications for the 2022 winter and 2024 summer Games.
BBC director general Tony Hall said: "The BBC prides itself on bringing the biggest sporting moments to the public. For many, the BBC has been their stadium for Olympic coverage. It is an event that unites the nation like no other.
"I'm delighted that through our new partnership with Discovery, the BBC will continue to carry the torch for great sporting coverage right through to the 2024 Games.
"While the BBC has had to take some tough financial decisions, this partnership underlines our commitment to making world class sport available to all."
Discovery holds all the European rights up to 2024 following an agreement with the International Olympic Committee.
It will now will sub-license from the BBC pay-TV rights in the UK to the 2018 and 2020 Olympics.