The two groups that go off duty on the Sabbath are to stand guard at the Temple to protect the king.
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."
The officers obeyed Jehoiada's instructions and brought their men to him - those going off duty on the Sabbath and those going on duty.
He gave the officers the spears and shields that had belonged to King David and had been kept in the Temple,
and he stationed the men with drawn swords all around the front of the Temple, to protect the king.
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!"
Queen Athaliah heard the noise being made by the guards and the people, so she hurried to the Temple, where the crowd had gathered.
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
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."
They seized her, took her to the palace, and there at the Horse Gate they killed her.
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.