In the seventh year Jehoiada takes courage and makes a covenant with five commanders of hundreds. They go through Judah gathering the Levites and the heads of families, who come to Jerusalem. The whole assembly makes a covenant with the king in the house of God. Jehoiada tells them that the king's son shall reign, as the Lord promised concerning the sons of David.
Jehoiada lays out the plan: a third of the priests and Levites coming on duty on the Sabbath will guard the doors, another third will be at the king's house and another at the Foundation Gate, while the people stay in the courts. Only the priests and the Levites on duty may enter the temple, because they are consecrated. The Levites surround the king with weapons in hand, and Jehoiada dismisses none of the divisions. He gives the commanders David's old spears and shields.
They bring out the king's son, put the crown and the testimony on him and proclaim him king. Jehoiada and his sons anoint him, and everyone shouts, Long live the king. Athaliah hears the noise of the people, goes to the temple and sees the king by the pillar, with the commanders and the trumpets, and all the people rejoicing. She tears her clothes and cries, Treason. Jehoiada orders her brought out between the ranks and not put to death inside the house of the Lord. They take her to the entrance of the Horse Gate and execute her there.
Then Jehoiada makes a covenant between himself, the people and the king that they should be the Lord's people. All the people tear down the house of Baal, break its altars and images and kill Mattan, the priest of Baal. Jehoiada restores the temple service according to David and sets gatekeepers so that no one unclean may enter. They bring the king down from the house of the Lord through the Upper Gate to the palace and seat him on the royal throne. All the people rejoice, and the city is quiet.