The contact electrification between Pt and an n-type Si (111) wafer can induce electrochemical corrosion of the latter. Based on this principle, an electrochemical nanoimprint lithography method is developed. Electrochemical nanoimprint lithography offers the possibility of imprinting directly on semiconductors.