Inorganic lead halide perovskites are structurally unstable, which prevents their application in solar cells. Here the authors synthesize, using high pressure and temperature, a perovskite CsPbI3 phase that is metastably preserved to ambient conditions through a structural deformation induced at high pressure.