Old English þornig; see thorn + -y (2). Figurative sense is attested from mid-14c. Related: Thorniness.