The image forming apparatus, comprises: a plurality of ejection heads which eject liquid containing, a first ultraviolet curing initiator having spectral absorption characteristics at least in a first wavelength range, a second ultraviolet curing initiator which has spectral absorption characteristics at least in a second wavelength range being on a shorter wavelength side from the first wavelength range and has no spectral absorption characteristics in the first wavelength range, an ultraviolet-polymerizable compound, and a coloring material, onto a medium; a semi-curing device which radiates, at least once, ultraviolet light having at least a wavelength which is in the first wavelength range and which is on a longer wavelength side from the second wavelength range, onto dots formed by the liquid ejected from the ejection heads onto the medium; an intermediate processing device which performs intermediate processing of an image formed on the medium by the dots; and a main curing device which radiates ultraviolet light having at least a wavelength in the second wavelength range, onto the image which has undergone intermediate processing by the intermediate processing device.