Nonlinear optical (NLO) switchable materials have attracted intense attention because of their promising applications in optoelectronic devices. However, previous studies are mainly limited to molecular-based compounds that usually exhibit narrow bandgaps. Here, we report all-inorganic Li 9 Na 3 Rb 2 (SO 4 ) 7 as an ultrawide-bandgap NLO switchable material. To the best of our knowledge, this sulfate shows the widest bandgap (6.70 eV) among NLO switchable materials. Furthermore, it undergoes a reversible phase transition with a high NLO switching contrast of about 180, which is almost the highest among known NLO switchable materials. Variable-temperature X-ray and neutron powder diffractions reveal that the exceptional NLO switching contrast can be attributed to the NLO-active [SO 4 ] 2− anions translating and rotating on the local scale. This work will provide insights into the development of ultrawide-bandgap NLO switchable materials, which may open up unprecedented opportunities for emerging applications, such as ultrawide-bandgap switches, sensors, and optoelectronics.