In response to the Hamas attack, Israel launched airstrikes against Gaza and undertook a ground invasion.