A method of forming a corrosion resistant coating on a substrate, the method comprising: adding a Zn-Al layered double hydroxide composition to a first solution comprising a first corrosion inhibiting compound and stirring; collecting a precipitate of the first solution; washing and drying the precipitate of the first solution to form a first corrosion inhibiting material, the first CIM comprising the first corrosion inhibiting compound intercalated in the Zn-Al LDH composition; adding the first CIM to a first sol-gel composition to form an organic CIM-containing sol-gel composition, wherein the first corrosion inhibiting compound is an organic corrosion inhibiting compound, and wherein the first CIM is an organic CIM; adding the Zn-Al LDH composition to a second solution comprising an inorganic corrosion inhibiting compound and stirring; collecting a precipitate of the second solution; washing and drying the precipitate of the second solution to form an inorganic CIM, the inorganic CIM comprising the inorganic corrosion inhibiting compound intercalated in the Zn-Al LDH composition; adding the inorganic CIM to a second sol-gel composition to form an inorganic CIM-containing sol-gel composition; applying the organic CIM-containing sol-gel composition on a substrate to form an organic CIM-containing sol-gel layer; curing the organic CIM-containing sol-gel layer by UV radiation; applying the inorganic CIM-containing sol-gel composition on the substrate to form an inorganic CIM-containing sol-gel layer; curing the inorganic CIM-containing sol-gel layer by the UV radiation; and thermally curing a plurality of sol-gel layers comprising the organic CIM-containing sol-gel layer and the inorganic CIM-containing sol-gel layer to form a corrosion-resistant coating. adding a Zn-Al layered double hydroxide composition to a first solution comprising a first corrosion inhibiting compound and stirring; collecting a precipitate of the first solution; washing and drying the precipitate of the first solution to form a first corrosion inhibiting material, the first CIM comprising the first corrosion inhibiting compound intercalated in the Zn-Al LDH composition; adding the first CIM to a first sol-gel composition to form an organic CIM-containing sol-gel composition, wherein the first corrosion inhibiting compound is an organic corrosion inhibiting compound, and wherein the first CIM is an organic CIM; adding the Zn-Al LDH composition to a second solution comprising an inorganic corrosion inhibiting compound and stirring; collecting a precipitate of the second solution; washing and drying the precipitate of the second solution to form an inorganic CIM, the inorganic CIM comprising the inorganic corrosion inhibiting compound intercalated in the Zn-Al LDH composition; adding the inorganic CIM to a second sol-gel composition to form an inorganic CIM-containing sol-gel composition; applying the organic CIM-containing sol-gel composition on a substrate to form an organic CIM-containing sol-gel layer; curing the organic CIM-containing sol-gel layer by UV radiation; applying the inorganic CIM-containing sol-gel composition on the substrate to form an inorganic CIM-containing sol-gel layer; curing the inorganic CIM-containing sol-gel layer by the UV radiation; and thermally curing a plurality of sol-gel layers comprising the organic CIM-containing sol-gel layer and the inorganic CIM-containing sol-gel layer to form a corrosion-resistant coating.