Electrochemically-assisted microwave deposition technology, a facile method for the fabrication of luminescent metal-organic framework (LMOF) films, is presented herein. This method was further developed into a versatile method for preparing patterned LMOF films. The strategy based on this method can spatially locate microcrystals of MOFs on a surface, which provides great promise in anti-counterfeiting barcode applications.