A marathon is 26.219 miles long to cover the exact distance run by Pheidippides, an ancient Greek messenger, from the battlefield of Marathon to Athens.