What causes the tilt on axis?

For the Earth, there are many theories, but the one that is accepted is that millions of years ago a meteorite hit the earth at an angle, causing it to tilt. It is also possible that the moon was formed by the debris that shot out of the earth when the meteorite hit it.