Two new d10-transition metal iodate fluorides, centrosymmetric ZnIO3F and noncentrosymmetric CdIO3F, were successfully synthesized by intriguing structure evolution. Both compounds have higher thermal stability and CdIO3F has a large SHG response and wide band gap. Our study may afford a viable route to design materials with excellent NLO functions.