The Lie-form invariance of a nonholonomic mechanical system is studied.The definition and criterion of the Lie-form invariance of the nonholonomic mechanical system are given.The Hojman conserved quantity and a new type of conserved quantity are obtained from the Lie-form invariance.An example is given to illustrate the application of the results.