Electro magnetism breaks down into
The electric field and magnetic field components
Gravity can be broken down into
Gravito electric and gravito magnetic components
The analogy is as flawless
Magnetism is just a relativistically induced force
Caused by the movement of electric charge