|Methods are described for the electrochemical assembly of organic molecules on silicon, or other conducting or semiconducting substrates, using iodonium salt precursors. Iodonium molecules do not assemble on conducting surfaces without a negative bias. Accordingly, the iodonium salts are preferred for patterning applications that rely on direct writing with negative bias. The stability of the iodonium molecule to acidic conditions allows them to be used with standard silicon processing. As a directed assembly process, the use of iodonium salts provides for small features while maintaining the ability to work on a surface and create structures on a wafer level. Therefore, the process is amenable for mass production. Furthermore, the assembled monolayer (or multilayer) is chemically robust, allowing for subsequent chemical manipulations and the introduction of various molecular functionalities for various chemical and biological applications.