Difficult to control or manage; not obedient and causing trouble or disorder.
From 'un-' (not) plus 'rule' (from Old French 'reule'), formed in the 16th century to mean 'not subject to rule.'
Unruly hair and unruly teenagers use the same word because both resist being controlled or shaped into neat patterns—they have their own agenda.
Complete word intelligence in one call. Free tier — 50 lookups/day.