Both mile and yard are units of distance thus they are inter convertible.
Distance covered in a marathon is 26.2 miles.
Since, 1 mile=1760 yards
Thus, distance can be converted into yards using the following conversion factor:

Thus, distance covered in marathon in yard will be:

Therefore, distance of the race is 46112 yards.