We have used femtosecond x-ray diffraction to study laser-shocked fiber-textured polycrystalline tantalum targets as the 37-253 GPa shock waves break out from the free surface. We extract the time and depth-dependent strain profiles within the Ta target as the rarefaction wave travels back into the bulk of the sample. In agreement with molecular dynamics simulations, the lattice rotation and the twins that are formed under shock compression are observed to be almost fully eliminated by the rarefaction process.