The current blockade started in 2007 2 years after Israel pulled out of Gaza and Hamas took control. The after they pulled out in 2006 there were over 900 rocket attacks an increase from the 176 the year before.
The blockade started in response to rocket attacks.