The phase rule, or Gibbs phase rule, is an equation used to predict the number of degrees of freedom in a thermodynamic system at equilibrium. It relates the number of phases, components, and independent variables in a system. The phase rule helps determine the conditions under which a system can be at equilibrium.