2 Kings 11:7-17

7 The two groups that go off duty on the Sabbath are to stand guard at the Temple to protect the king.
8 You are to guard King Joash with drawn swords and stay with him wherever he goes. Anyone who comes near you is to be killed."
9 The officers obeyed Jehoiada's instructions and brought their men to him - those going off duty on the Sabbath and those going on duty.
10 He gave the officers the spears and shields that had belonged to King David and had been kept in the Temple,
11 and he stationed the men with drawn swords all around the front of the Temple, to protect the king.
12 Then Jehoiada led Joash out, placed the crown on his head, and gave him a copy of the laws governing kingship. Then Joash was anointed and proclaimed king. The people clapped their hands and shouted, "Long live the king!"
13 Queen Athaliah heard the noise being made by the guards and the people, so she hurried to the Temple, where the crowd had gathered.
14 There she saw the new king standing by the column at the entrance of the Temple, as was the custom. He was surrounded by the officers and the trumpeters, and the people were all shouting joyfully and blowing trumpets. Athaliah tore her clothes in distress and shouted, "Treason! Treason!" 1
15 Jehoiada did not want Athaliah killed in the Temple area, so he ordered the army officers: "Take her out between the rows of guards, and kill anyone who tries to rescue her."
16 They seized her, took her to the palace, and there at the Horse Gate they killed her.
17 The priest Jehoiada had King Joash and the people make a covenant with the Lord that they would be the Lord's people; he also made a covenant between the king and the people.