A facile and metal-free thin film fabrication technology based on the photoinduced continuous assembly of polymers (photoCAP) is described. The efficiency and versatility of this method is demonstrated by the formation of crosslinked and surface-confined nanoengineered thin films, in the form of surface coatings and hollow polymer capsules.