The formation of 2-D arrays of cavities of varying size and depth on an electrode surface via colloidal templating is described.