We study theoretically the origin and mechanism of the ultrafast inverse Faraday effect, which is a magnetooptical effect, attracting much interest nowadays. Laser-induced subpicosecond spin dynamics in hydrogenlike systems and isolated many-electron atoms are investigated in order to get insight into this process. We show that the stimulated Raman scattering process leads to a change of the ma...