The International Olympic Committee (IOC) has elected the city of Tokyo to host the Olympic Games in 2020.