Snails can anchor themselves in place using a structure known as an epiphragm. The snail's slimy secretion works its way into the pores found on even seemingly smooth surfaces, then hardens, providing strong adhesion that can be reversed when the slime softens. Engineers have developed a new material that works in a similar way.

Source: Superstrong, reversible adhesive that works like snail slime