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