The original definition of a marathon involves running from Athens to Marathon in Greece, and when your average person thinks of a marathon, they think of the street races that happen all around the world.
Marathon running isn't necessarily a track and field sport in the way the 100 meter sprint is.
It is the other way around; running back from Marathon to Athens.
The story takes place after Athenian Hoplites pushes back a Persian army into their ships at the Marathon shores, after which this ship sails to Athens to wreak havoc. Hoplites make the run from Marathon to Athens just in time to defend against Persians and successfully discourage them against further attacks.
After the Battle of Marathon, hoplites who were in the war referred it to as "the run", "we ran", or had "he ran" carved in their tombstones etc. So Marathon became synonymous with running.
The story of Pheidippides running from Marathon to Athens (and dying on arrival) is certainly apocryphal, but it's nevertheless the origin of the modern marathon.
"When they had been set in order and the sacrifices were favorable, the Athenians were sent forth and charged the foreigners at a run. The space between the armies was no less than eight stadia. [Note: One mile]
"The Persians saw them running to attack and prepared to receive them, thinking the Athenians absolutely crazy, since they saw how few of them there were and that they ran up so fast without either cavalry or archers.
"So the foreigners imagined, but when the Athenians all together fell upon the foreigners they fought in a way worthy of record. These are the first Hellenes whom we know of to use running against the enemy. They are also the first to endure looking at Median dress and men wearing it, for up until then just hearing the name of the Medes caused the Hellenes to panic.
-
It's also interesting to note that the Spartan army arrived at Marathon a day late "having marched (140 mi) in only three days."
If you're interested in the period, check out the podcast Dan Carlin's Hardcore History. He's got a three part series on the Persians that's totally engrossing. For one thing, it's where I heard the "we ran" story about Marathon veterans. Carlin is a fantastic storyteller, and his stuff is very well researched.
A single man runs from Marathon to Athens, says only “we are victorious”, and then dies. That’s the legend, but it’s confusing two events. Pheidippides actually ran from Athens to Sparta to request reinforcements. The Marathon to Athens run has the hoplites getting there just in time to see the Persians leave Athens.
Marathon running isn't necessarily a track and field sport in the way the 100 meter sprint is.