A spider’s web is a device built by the spider to trap prey. Spider silk, a protein, is the main component of the web. Many proteins have β sheets, a fundamental unit of protein structure, but silk is composed almost entirely of β sheets.