Israel's military offensive sparked by Hamas militants' attack in October 2023 devastated the territory of two million people before a patchy ceasefire was announced in October 2025.