Film processing and patterning techniques are a prerequisite to fully exploit the potential of metal–organic frameworks (MOFs) in integrated applications. We report a solvent-free approach for the synthesis of ZIF-8 thin films and patterns through the reaction of ZnO films with melted 2-methylimidazole.