How do electromagnetic waves go through the vacuum of space?
Be it light or some other electrical field (say X-rays or microwaves), this doesn’t make sense really. So how do they travel when there is no medium to travel through?
Every electrical field produces a magnetic field as a side effect: they are offset from each other by 90 degrees, like the mathematical sin and cos functions. The interaction at the middle helps transfer the energy from one point to another. This is not made without a loss, hence the dimmed light of a distant star.
Fields of any kind do not need matter to exist (this also makes gravity behave the way it does).
Source: quora.com

