Extended x-ray absorption fine structure (EXAFS) measurements have demonstrated the phase transformation from body-centered-cubic (bcc) to hexagonal-close-packed (hcp) iron due to nanosecond, laser-generated shocks. The EXAFS spectra are also used to determine the compression and temperature in the shocked iron, which are consistent with hydrodynamic simulations and with the compression inferred from velocity interferometry. This is a direct, atomic-level, and in situ proof of shock-induced transformation in iron, as opposed to the previous indirect proof based on shock-wave splitting.