We calculate the magnetic moments of the N(1535) resonance using the chiral unitary model, where the resonance is dynamically generated in the scatterings of the lowest-lying mesons and baryons. We obtain the magnetic moments of the resonance as +1.1 and -0.25 for p(1535) and n(1535), respectively, in units of the nuclear magneton. We discuss the origin of these numbers within the chiral unitary model, then we compare the present results with those of the quark model and the chiral doublet model. The possibility to observe the magnetic moments in experiments is also investigated.