Where does the marathon get its name from in ancient Greece?

In the 5th century B.C., the Persians invaded Greece. The Battle of Marathon was the final battle that forced the Persians back out of Greece. Legend says that afterwards a man ran the 26.3 miles to Athens to declare victory and dropped dead.