The newly synthesized perfluoropolyether (PFPE) whose terminal group is an ammonium salt with a carboxylic acid has better frictional and anti-corrosion properties when compared to the conventional PFPEs. The friction is almost independent of the PFPE structure, but depends on the amine structures. This modified PFPE uniformly covers the magnetic surfaces; this is why it not only reduces the friction, but also has an effect on the corrosion resistance.