6 A third of you must guard the Sur Gate. And a third of you must guard the gate that is behind the guard. All of you must take turns guarding the temple.
7 "The rest of you are in the other two companies. Normally you are not on duty on the Sabbath. But you also must guard the temple for the king.
8 Station yourselves around the king. Each man must have his weapon in his hand. Anyone else who approaches your companies must be put to death. Stay close to the king no matter where he goes."
9 The commanders of the companies did just as the priest Jehoiada ordered. Each commander got his men and came to Jehoiada. Some of the men were going on duty on the Sabbath day. Others were going off duty.
10 Then Jehoiada gave weapons to the commanders. He gave them spears and shields. The weapons had belonged to King David. They had been in the Lord's temple.
11 The guards stationed themselves around the new king. Each man had his weapon in his hand. They were near the altar and the temple. They stood from the south side of the temple to its north side. Their line formed half of a circle.
12 Jehoiada brought Ahaziah's son out. He put the crown on him. He gave him a copy of the covenant. And he announced that Joash was king. Jehoiada and his sons anointed him. The people clapped their hands. Then they shouted, "May the king live a long time!"