Consider a charge oscillating with some frequency (An oscillating charge is an example of accelerating charge )   This
produces an oscillating electric field in space, which produces an
oscillating magnetic field, which in turn, is a source of oscillating electric
field, and so on The oscillating electric and magnetic fields thus
regenerate each other, so to speak, as the wave propagates through the
space