A method of producing a polymer according to the present invention is
characterized by comprising a step of photopolymerizing one or more
photopolymerizable polymerization precursors by irradiation with an
activation energy ray in a supercritical fluid or in a subcritical fluid.