Squeezing a tube of toothpaste illustrates Pascal's principle, which states that pressure applied to a confined fluid is transmitted equally in all directions. When you squeeze the tube, the pressure you apply is transmitted equally throughout the toothpaste, causing it to be forced out of the opening. This principle is also the basis for hydraulic systems, which use fluids to transmit pressure and force.