Various forms of ice exist within our galaxy, from interstellar clouds to comets, moons and planets. Particularly intriguing type of ice -"ferroelectric ice", which can sustain a giant electric field was discovered experimentally and is stable in the temperature range 57-74 K. This form of ice, named ice XI, can generate enormous electric fields and can play an important role in planetary formation. We measured neutron diffraction profiles of D 2 O ice with impurities to investigate the formation of ice XI under atmospheric pressure. We made powder samples of ice doped with KOD, NaOD, LiOD, DCl, ND 3 and Ca(OD) 2 . We carried out Rietveld analysis for diffraction profiles and obtained the mass fraction f (the ratio of the mass of ice XI to that of the doped ice). A significant amount of ferroelectric ice is observed in ice samples with dopants, which produce L-defect. The values of f of ice doped with 0.01 -0.001-M KOD or NaOD is generally higher than those with 0.1-M KOD or NaOD. On the other hand, ice samples with D-defect, did not become ferroelectric ice. On the basis of the neutron diffraction data we have discussed the properties of ferroelectric ice.