candidate: The marathon course is based on the myth from which the race gained its name : Pheidippides , a messenger in Ancient Greece , ran from the Battle of Marathon to Athens to announce the Greeks ' victory over the Persians .