Helical piers stabilize failing foundations by being driven deep into the ground until they reach stable soil. They then transfer the weight of the structure from the unstable soil to the stable soil or bedrock below, providing additional support and preventing further settlement or movement of the foundation.