The present invention relates to a photopatterning process for controlling the two dimensional spatial distribution of molecules in thiolate self-assembled monolayers (SAMS), particularly alkylthiolate self-assembled monolayers, on gold, silver and other substrates.