A photosensitive ultrathin film has been fabricated from a diazo resin (DR) and phenol-formaldehyde resin (PR) via hydrogen bonding, covalent bonds are formed UV irradiation giving a covalently linked ultra-thin film; as a consequence the stability of the film towards polar solvents increases dramatically.