Friction as the component of contact force: When two bodies are kept in contact, electromagnetic forces act between the two contact surfaces of the bodies. As a result, each body exerts a contact force on the other.Frictional forces are caused due to intermolecular interactions between the bodies.Hence friction is formed between two bodies.