Answer:
Consider the energy the earth receives from the sun. The electromagnetic waves travel thru empty space until they interact with some medium surrounding the earth: ozone, atmosphere, solids, etc.
This is contrasted to longitudinal waves such as sound waves which can only travel thru the medium with which they interact.