Al-Ankabut ('The Spider'), 69 mainly Meccan verses, opens on trial as the test of faith and likens those who take patrons besides God to a spider building the frailest of houses (29:41). It gathers the perseverance of Noah, Abraham, Lot and Shuayb as encouragement to a persecuted community.
Al-Ankabut opens by asking whether people imagine they will be left merely to say 'we believe' without being tested (29:2), a question commentators read as the surah's governing theme, developed across its narratives of Noah's centuries-long call, Abraham's confrontation with idolatry and fire, Lot's warning to his people, and Shuayb's preaching to Midian, each account selected specifically for the persecution its prophet endured rather than for the fuller narrative detail given to some of the same figures elsewhere in the Quran. The spider's web, offered as an image for the frailty of any protector besides God (29:41), is read by al-Razi as a deliberately humble comparison, since a web is proverbial in Arabic for flimsiness, chosen over a more imposing image precisely to underline how little strength false patrons actually provide despite appearing to offer shelter. Because much of the surah addresses believers currently suffering persecution directly, exegetes generally place its revelation in the difficult later Meccan years, reading its repeated assurances that God knows the hypocrites from the sincere (29:11) as addressed to a community under real strain to distinguish steadfast believers from those merely posing as such.