The process of molecules or particles adhering to a solid or liquid surface, forming a thin film or layer.