https://en.wikipedia.org/wiki/Capillary_action#Phenomena_and_physics
Capillary penetration in porous media shares its dynamic mechanism with flow in hollow tubes, as both processes are resisted by viscous forces. Consequently, a common apparatus used to demonstrate the phenomenon is the
capillary tube. When the lower end of a glass tube is placed in a liquid, such as water, a concave
meniscus forms.
Adhesion occurs between the fluid and the solid inner wall pulling the liquid column along until there is a sufficient mass of liquid for
gravitational forces to overcome these intermolecular forces.