Coke came first.
Coke was invented in 1886, while Pepsi was created later, in 1898. This makes Coke the older beverage and the first to market. This twelve-year head start gave Coke a significant advantage in establishing brand recognition and market share. The rivalry between the two soda giants began almost immediately after Pepsi's inception and has continued for over a century.