When Zimri realized that the city was about to be captured, he went into his palace and set it on fire. So the palace burned down, and he died in the fire.