The QR factorization of a matrix decomposes it into an orthogonal matrix and an upper triangular matrix.