Rocks deform in a ductile manner because of the combined influence of temperature and confining pressure; temperature, more so. As rocks heat up at depth due to elevated geothermal gradients or proximity to an igneous intrusion, then minerals inside the solid-rock material become less resistant to being reshaped (i.e., more ductile). When rocks also have sufficient water they tend to be weaker and can be deformed at lower temperatures.