Any static charge will have a static field.
Now, if charge starts moving it will generate a time varying field given by maxwell's time harmonic equations
Now taking curl (roughly you can think of it as diffrentiating wrt time) & doing some math, & assuming the conditions for free space we get the wave equations.