Cofactor expansion, also known as Laplace expansion, is a method for calculating the determinant of a square matrix by expanding it along a row or column. This technique involves breaking down a matrix into smaller matrices (minors) and using their determinants along with cofactors to compute the original determinant.