He tried to please God while the priest Zechariah was living, because Zechariah taught him to revere God. As long as Uzziah tried to please God, God enabled him to be successful.