Dear Student,
Friction is the opposing force that acts when the surfaces are in contact at rest or in motion. There are three basic reasons for the friction -: surface roughness , plowing effect (deformations of the object), molecular adhesion (forces that act when molecules are in close contact).
Regards!