Athaliah was the mother of Ahaziah. When she saw that her son was dead, she took over. She began by massacring the entire royal family.
But Jehosheba, daughter of King Joram and sister of Ahaziah, took Ahaziah's son Joash and kidnapped him from among the king's sons slated for slaughter. She hid him and his nurse in a private room away from Athaliah. He didn't get killed.
He was there with her, hidden away for six years in The Temple of God. Athaliah, oblivious to his existence, ruled the country.
Published by permission. Originally published by NavPress in English as THE MESSAGE: The Bible in Contemporary Language copyright 2002 by Eugene Peterson. All rights reserved. (The Message Bible Online)