The worst floods in Pakistan’s history occurred in 2010. One fifth of Pakistan’s land area was covered in water. The water took a long time to recede. As a result of the floods, spiders climbed up into the trees and as they couldn’t return to the land, they formed these cocoons in the trees.
Source: Huffington Post