Local structures around Pb(II) and Sn(II) in CH3NH3PbX3 (X = Cl, Br, I) and CH3NH3SnX3 (X = Br, I) were studied by Pb LIII‐edge and Sn K‐edge EXAFS in the temperature range of 10 to 293 K. The M–X distances (M = Pb, Sn; X = Cl, Br, I), the coordination numbers, and the Debye‐Waller factors were determined in three, four, three, five, and two solid phases of CH3NH3PbCl3, CH3NH3PbBr3, CH3NH3PbI3, CH3NH3SnBr3, and CH3NH3SnI3, respectively. Five kinds of deformed octahedra consisting of halogens were observed.