McDonald's will no longer be a sponsor of the Olympics.

The fast food chain is ending its decades-long affiliation with the Games, cutting short a deal that was supposed to run at least through 2020.

McDonald's has worked with the Olympics since 1968, when it delivered hamburgers to athletes competing in the Winter Games in Grenoble, France.

It became an official sponsor of the U.S. Olympic Committee in 1976 and has been linked to the Games ever since -- stamping the Olympic rings on its soda cups and running familiar commercials promoting Team USA.

In 1984, McDonald's ran a promotion called "When the U.S. Wins, You Win": Any time an American athlete won a medal, Americans won food. The deal was so popular -- and American athletes so successful -- that some locations reportedly ran out of Big Macs.

The International Olympic Committee said the decision to part ways was mutual.

The split takes effect immediately with one exception: McDonald's (MCD) will still sponsor the 2018 Winter Olympics in PyeongChang, South Korea. McDonald's will operate restaurants in the Olympic Park and the Olympic Village, and can advertise in South Korea as an Olympic sponsor.

But McDonald's Olympic-themed advertising in the United States will end immediately.

Related: Budweiser bows out of Team USA sponsorship

Michael Payne, a former IOC marketing director, told CNNMoney he views this split as logical.

"McDonald's has been a partner for a very long time, which is expensive," he said. "It also got to the point where McDonald's was difficult to manage. McDonald's viewed itself as owning the food category. This isn't just a case of the sponsor saying, 'We've decided to move on.'"

Payne did note that ending the contract early is odd -- especially in McDonald's case because it has been such an important sponsor for so long.

At the most recent Olympics, last summer in Rio de Janeiro, McDonald's sent 100 children to Brazil to participate in the opening ceremony.

Still, the company has undergone recent changes. A new CEO took office in 2015 and has focused on new features for customers like online ordering and delivery.

Related: McDonald's will use Snapchat to hire for 250,000 jobs

Several other big name-companies have stepped away from the Olympics.

Budweiser (BUD) and TD Ameritrade (AMTD) pulled out of their Olympic sponsorships this year, although their deals were only with the USOC, not the IOC. AT&T (T), Citi (C) and Hilton (HLT) have also opted to not partner with the USOC.

While changing sponsorships may be normal, the splits come after disappointing viewership of the 2016 Olympic Games in Rio.

NBC, which has the broadcast rights through 2032, reported a ratings dip last summer when it averaged 25.8 million viewers. The 2012 London Olympics drew an average of 31.1 million viewers.