What caused these layers of rock to deform?

Answer:
tectonic forces
Explanation:
Rocks that were originally deposited in horizontal layers can subsequently deform by tectonic forces into folds and faults. Folds constitute the twists and bends in rocks. Faults are planes of detachment resulting when rocks on either side of the displacement slip past one another.