And Ahaziah fell down through the lattice in his upper room that was in Samaria and was injured. So he sent messengers and said to them, “Go, inquire of Baal Zebub, the god of Ekron, whether I will recover of this injury.” Bible

“fell down through the lattice.” The latticework covered the window, so it seems that Ahaziah was leaning against the lattice to get a better look at something happening outside when the lattice gave way and he fell from his upper room to the ground below.

Commentary for: 2 Kings 1:2