Old English scyttan "to put (a bolt) in place so as to fasten a door or gate, bolt, shut to; discharge, pay off," from West Germanic *skutjan (source also of Old Frisian schetta, Middle Dutch schutten "to shut, shut up, obstruct"), from PIE root *skeud- "to shoot, chase, throw." Related: Shutting.
Meaning "to close by folding or bringing together" is from mid-14c. Meaning "prevent ingress and egress" is from mid-14c. Sense of "to set (someone) free (from)" (c. 1500) is obsolete except in dialectal phrases such as to get shut of. To shut (one's) mouth "desist from speaking" is recorded from mid-14c.