Capillary action is the ability of a liquid to flow against gravity in a narrow tube or container due to the combination of surface tension and the cohesive forces of the liquid molecules. This results in the liquid rising or lowering in a narrow container or tube, such as in plants, where it helps transport water and nutrients.