Joash was hidden with them in the Temple of God for six years. During that time Athaliah ruled the land.