The present invention relates to a method for using compositions comprising poly-oxycarbosilane in step and flash imprint lithography. The imprinting compositions comprise a poly-oxycarbosilane polymer and a pore generator.