We investigate nitrogen isotope fractionation in forming and evolving molecular clouds using gas-ice astrochemical simulations. We find that the bulk gas can become depleted in heavy nitrogen ( 15 N) due to the formation of 15 Nenriched ices. Around the chemical transition from atomic nitrogen to N 2 , N 15 N is selectively photodissociated, which results in the enrichment of 15 N in atomic nitrogen. As 15 N-enriched atomic nitrogen is converted to ammonia ice via grain surface reactions, the bulk gas is depleted in 15 N. The level of 15 N depletion in the bulk gas can be up to a factor of two compared to the elemental nitrogen isotope ratio, depending on the photodesorption yield of ammonia ice. Once the nitrogen isotopes are differentially partitioned between gas and solids in a molecular cloud, it should remain in the later stages of star formation (e.g., prestellar core) as long as the sublimation of ammonia ice is inefficient. Our model suggests that all the N-bearing molecules in the cold gas of star-forming regions can be depleted in 15 N, which is at least qualitatively consistent with the observations toward prestellar core L1544. In our models, icy species show both 15 N and deuterium fractionation. The fractionation pattern within ice mantles is different between 15 N and deuterium, reflecting their fractionation mechanisms; while the concentration of deuterium almost monotonically increases from the lower layers of the ice mantles to the upper layers, the concentration of 15 N reaches the maximum at a certain depth and declines towards the surface. )75 290 +160 −80 335 (383,501) 292 (338,383) 224 (257,276) HCN/HC 15 N g) 257 330 +60 −50 342 (390,502) 306 (349,385) 244 (271,280) N/ 15 N (bulk gas) --495 (513,518) 410 (408,407) 320 (314,311) NH3/ 15 NH3 (ice) --292 (292,282) 272 (274,276) 246 (252,259) HCN/HC 15 N (ice) --274 (293,326) 238 (276,283) 193 (196,220) Note-a) Bizzocchi et al. (2013) b) Gerin et al. (2009) c) Hily-Blant et al. (2013a) d) Hily-Blant et al. (2013b) e) Daniel et al. (2013) f ) Y NH 3 pdis the photodesorption yield of NH3. The values are the results at AV = 3 mag, while the first (second) values in parentheses are the ratios after the additional 10 5 (10 6 ) yr evolution under prestellar core conditions. g) The ratios were derived from the observations of the 13 CN/C 15 N ratio and the H 13 CN/HC 15 N ratio, assuming the elemental C/ 13 C ratio.