a lubricant has the formula x : y , wherein x is a layered material selected from the group consisting of layered transition metal dichalcogenides and graphite . y is a magnetic inclusion between layers of x . the lubricant is made by adding x to a solution containing ions of y . the solution is continuously mixed and dried . the y is then reduced to a metallic form .