The zeroth law of thermodynamics states that if two systems are each in thermal equilibrium with a third system, then they are in thermal equilibrium with each other. This foundational concept establishes the basis for temperature measurement and the understanding of heat transfer between systems, linking directly to how temperature is defined and used in thermodynamic principles.