2 Kings 11:3

And he was with her hid in the house of the LORD six years. And Athaliah did reign over the land.

And he was with her hid in the house of the Lord six years,.... In the temple; not in the holy of holies, as Jarchi, but in a chamber of the priests and Levites, of which there were several in a temple, as Kimchi, and others; and the husband of Jehosheba, being high priest, had one of them for his own use; and here the child was hid six years, so that he was but a year old when he was first taken and preserved, for he was made king when seven years of age, 2 Kings 11:21,

And Athaliah did reign over the land; the only instance we hear of a woman reigning in Israel, and this was not by right, but by usurpation; and so, according to the Jewish canons, a woman might not rule; which thus runs {a}, they do not set a woman in the kingdom, as it is said, Deuteronomy 17:15, "a king over them", not a queen; and so, in all places of power and authority in Israel, they put in them none but a man.

{a} Maimon. Hilchot Melachim, c. 1. sect. 5.