A square matrix is invertible if and only if its rank equals the number of its columns (or rows), meaning it has full rank.