Jehosheba was King Joram's daughter and Ahaziah's sister. Joash was one of the king's sons. While the other children were being killed, Jehosheba took Joash and hid him. She put him and his nurse in her bedroom, so Jehosheba and the nurse hid Joash from Athaliah. That way Joash was not killed.
In the seventh year Jehoiada the high priest sent for the captains of the Carites and guards. He brought them together in the Lord's Temple and made an agreement with them. In the Temple he forced them to make a promise. Then he showed the king's son to them.
Then Jehoiada gave them a command. He said, "This is what you must do. Onethird of you, from those who go on duty on the Sabbath day, must stand guard at the royal palace.
Another third will be at the Sur Gate, and the other third will be at the gate behind the guard. This way you will stand guard over the palace on all sides.
You must stay with him wherever he goes. The whole group must surround the king. Each guard must have his weapon in his hand, and you must kill anyone who comes too close to you."
The captains obeyed everything that Jehoiada the priest commanded. Each captain took his men, both those who were going on duty on the Sabbath day and those who were going off duty. All these men went to Jehoiada the priest,
These guards stood with their weapons in their hands from the right corner of the Temple to the left corner. They stood around the altar and the Temple and around the king when he went to the Temple.
These men brought out Joash. They put the crown on him and gave him a copy of the agreement. Then they anointed him and made him the new king. They clapped their hands and shouted, "Long live the king!"
Athaliah saw the king by the column where he usually stood. She also saw the leaders and men playing the trumpets for him. She saw that all the people were very happy. She heard the trumpets, and she tore her clothes to show she was upset. Then Athaliah shouted, "Treason! Treason!"
Jehoiada the priest gave a command to the captains who were in charge of the soldiers. Jehoiada told them, "Take Athaliah outside of the Temple area. Kill any of her followers, but don't kill them in the Lord's Temple."
Then Jehoiada made the agreement between the Lord and the king and the people. This agreement showed that the king and the people belonged to the Lord. Jehoiada also made the agreement between the king and the people.
Then all the people went to the temple of Baal. They destroyed the statue of Baal and his altars. They broke them into many pieces. They also killed Baal's priest, Mattan, in front of the altars. So Jehoiada the priest put men in charge of maintaining the Lord's Temple.
The priest led all the people. They went from the Lord's Temple to the king's palace. The king's special guards and the captains went with the king, and all the other people followed them. They went to the entrance to the king's palace. Then King Joash sat on the throne.