Primary decomposition in commutative algebra refers to expressing an ideal as an intersection of primary ideals, which are closely related to prime ideals. This decomposition provides insight into the structure of modules over a ring, akin to factoring integers into prime numbers.