A polar-hydrophobic ionic liquid induces grain growth and stabilization in halide perovskites.