How serious was the Olympics in ancient Greece?

Ancient Greeks were very serious about the Olympics that even when they are in the middle of a war,they will actually stop what there doing and go and play in the Olympics!