Engineers uncover the chemical interactions that make perovskites unstable and can prevent them.