A deep and enduring divine frustration surrounds the history of Jerusalem, ultimately culminating in the fateful decision to destroy it. The roots of this divine anger reach all the way back to the era of King Solomon, the very leader who built the city and the Temple. Even during those early days of glory, the people began sacrificing on high places, and Solomon's foreign wives introduced the worship of other gods [רד״ק]. These transgressions were woven into the fabric of the city from its inception. In fact, on the exact day the foundation of the Temple was laid, Solomon married the daughter of Pharaoh, planting the seeds of spiritual downfall alongside the physical stones of the sanctuary [רש״י, רד״ק].
Despite housing the holy Temple, the city remained a constant source of divine displeasure, angering God throughout the entirety of its existence [ביאור שטיינזלץ]. The fact that Jerusalem stood for as long as it did was not a testament to its innocence, but rather a reflection of God's immense patience. Based on the actions of its inhabitants, the city deserved to be ruined long ago. God simply delayed His judgment, extending His patience until the moment arrived when He would no longer hold back His anger, deciding instead to remove the city from His sight [רד״ק, מצודת דוד].
However, this destruction can be understood not merely as a harsh punishment, but as a profound act of salvation for the Israelites. The physical city actually served as a shield, absorbing the brunt of God's anger [מלבי״ם]. God can be compared to a gardener who notices a spoiled plant; rather than allowing the disease to spread and ruin the entire garden, the gardener uproots the plant and moves it to a new location so it can heal and regain its strength. In a similar way, God attributes the spiritual corruption of the Israelites to the physical place itself, treating Jerusalem as the source of the decay. To save the people from total annihilation, God pours out His wrath entirely on the wood and stones of the city. By tearing down the physical structures, He exhausts His anger, ensuring that the Israelites themselves are spared from complete destruction.