Capillary action is the process of a liquid flowing in a narrow space in opposition to or at least without the assistance of any external forces like gravity.

It occurs because of intermolecular forces between the liquid and surrounding solid surfaces. If the diameter of the tube is sufficiently small, then the combination of surface tension (which is caused by cohesion within the liquid) and adhesive forces between the liquid and container wall act to propel the liquid.