early 14c., "action of defending," shortening of defens (see defense). Spelling alternated between -c- and -s- in Middle English. Sense of "enclosure" is first recorded mid-15c. on notion of "that which serves as a defense." Sense of "dealer in stolen goods" is thieves' slang, first attested c.1700, from notion of such transactions taking place under defense of secrecy. To be figuratively on the fence "uncommitted" is from 1828, from the notion of spectators at a fight.
mid-15c., "surround with a fence;" c.1500, "defend, screen, protect;" 1590s, "fight with swords;" the last from the noun in this sense (1530s); see fence (n.). Related: Fenced, fencing.