The invention discloses a preparation method of an elastic hard lubricating nano composite thin-film material. According to the method, the elastic hard lubricating nano composite thin-film material is prepared at low temperature through the combination of the technologies of magnetron sputtering deposition and plasma treatment; the thin film adopts a nitride (such as titanium nitride (TiN), chromium nitride (CrN), zirconium nitride (ZrN), and the like) porous structure as a skeleton, and nanopores are filled with soft matter graphite, so that the hard phase / soft phase composite nano thin film is formed, the surface is smooth, the bonding with a base material is firm, and high hardness and toughness and good lubricating behavior are achieved; and the porous thin film is applicable to the fields of flexible electronic materials, flat panel displays, microelectronic mechanical systems, polymer protection, glass sheets, textile fabrics, antifriction and abrasion-resistant objects, and the like.