A contact force is a force that occurs when two objects are physically touching each other. Gravitational force, on the other hand, is a non-contact force. It acts between any two objects with mass, regardless of whether they are touching or not. This force is due to the attraction between the objects' masses.