AbstractFerroelasticity represents material domains possessing spontaneous strain that can be switched by external stress. Three-dimensional perovskites like methylammonium lead iodide are determined to be ferroelastic. Layered perovskites have been applied in optoelectronic devices with outstanding performance. However, the understanding of lattice strain and ferroelasticity in layered perovskites is still lacking. Here, using the in-situ observation of switching domains in layered perovskite single crystals under external strain, we discover the evidence of ferroelasticity in layered perovskites with layer number more than one, while the perovskites with single octahedra layer do not show ferroelasticity. Density functional theory calculation shows that ferroelasticity in layered perovskites originates from the distortion of inorganic octahedra resulting from the rotation of aspherical methylammonium cations. The absence of methylammonium cations in single layer perovskite accounts for the lack of ferroelasticity. These ferroelastic domains do not induce non-radiative recombination or reduce the photoluminescence quantum yield.