10 Now when Athaliah, Ahaziahs mother, saw that her son was dead, she set about to destroy all the royal family of the house of Judah. 11But Jehoshabeath, the kings daughter, took Joash son of Ahaziah, and stole him away from among the kings children who were about to be killed; she put him and his nurse in a bedroom. Thus Jehoshabeath, daughter of King Jehoram and wife of the priest Jehoiadabecause she was a sister of Ahaziahhid him from Athaliah, so that she did not kill him; 12he remained with them for six years, hidden in the house of God, while Athaliah reigned over the land.
23But in the seventh year Jehoiada took courage, and entered into a compact with the commanders of the hundreds, Azariah son of Jeroham, Ishmael son of Jehohanan, Azariah son of Obed, Maaseiah son of Adaiah, and Elishaphat son of Zichri. 2They went about through Judah and gathered the Levites from all the towns of Judah, and the heads of families of Israel, and they came to Jerusalem. 3Then the whole assembly made a covenant with the king in the house of God. Jehoiada said to them, Here is the kings son! Let him reign, as the Lord promised concerning the sons of David. 4This is what you are to do: one-third of you, priests and Levites, who come on duty on the sabbath, shall be gatekeepers, 5one-third shall be at the kings house, and one-third at the Gate of the Foundation; and all the people shall be in the courts of the house of the Lord. 6Do not let anyone enter the house of the Lord except the priests and ministering Levites; they may enter, for they are holy, but all the other people shall observe the instructions of the Lord. 7The Levites shall surround the king, each with his weapons in his hand; and whoever enters the house shall be killed. Stay with the king in his comings and goings.
8 The Levites and all Judah did according to all that the priest Jehoiada commanded; each brought his men, who were to come on duty on the sabbath, with those who were to go off duty on the sabbath; for the priest Jehoiada did not dismiss the divisions. 9The priest Jehoiada delivered to the captains the spears and the large and small shields that had been King Davids, which were in the house of God; 10and he set all the people as a guard for the king, everyone with weapon in hand, from the south side of the house to the north side of the house, around the altar and the house. 11Then he brought out the kings son, put the crown on him, and gave him the covenant; they proclaimed him king, and Jehoiada and his sons anointed him; and they shouted, Long live the king!
12 When Athaliah heard the noise of the people running and praising the king, she went into the house of the Lord to the people; 13and when she looked, there was the king standing by his pillar at the entrance, and the captains and the trumpeters beside the king, and all the people of the land rejoicing and blowing trumpets, and the singers with their musical instruments leading in the celebration. Athaliah tore her clothes, and cried, Treason! Treason! 14Then the priest Jehoiada brought out the captains who were set over the army, saying to them, Bring her out between the ranks; anyone who follows her is to be put to the sword. For the priest said, Do not put her to death in the house of the Lord. 15So they laid hands on her; she went into the entrance of the Horse Gate of the kings house, and there they put her to death.
16 Jehoiada made a covenant between himself and all the people and the king that they should be the Lords people. 17Then all the people went to the house of Baal, and tore it down; his altars and his images they broke in pieces, and they killed Mattan, the priest of Baal, in front of the altars. 18Jehoiada assigned the care of the house of the Lord to the levitical priests whom David had organized to be in charge of the house of the Lord, to offer burnt-offerings to the Lord, as it is written in the law of Moses, with rejoicing and with singing, according to the order of David. 19He stationed the gatekeepers at the gates of the house of the Lord so that no one should enter who was in any way unclean. 20And he took the captains, the nobles, the governors of the people, and all the people of the land, and they brought the king down from the house of the Lord, marching through the upper gate to the kings house. They set the king on the royal throne. 21So all the people of the land rejoiced, and the city was quiet after Athaliah had been killed with the sword.