Gravitational force can be repulsive.
Unlike gravitational force, magnetic force can be attractive or repulsive in nature.