The marathon may have ancient roots, but the foot race’s official length of 26.2 miles wasn’t established until the 20th century. The first organized marathon was run in Athens at the 1896 Olympics, the start of the Games’ modern era. The ancient games, which took place in Greece from around 776 B.C. to A.D. 393, never included such long-distance races.
The idea for the modern marathon was inspired by the legend of an ancient Greek messenger who raced from the site of Marathon to Athens, a distance of about 40 kilometers, or nearly 25 miles, with the news of an important Greek victory over an invading army of Persians in 490 B.C. After making his announcement, the exhausted messenger collapsed and died. To commemorate his dramatic run, the distance of the 1896 Olympic marathon was set at 40 kilometers.