Who was able to secure and stabilize the state eventually and gain the support of the people?