“Vex” comes from a Latin root that originally meant physical shaking or tossing, then broadened into “harass, trouble, annoy,” and finally into the modern sense of mental irritation or distress. It entered English through Old French in the late 14th to early 15th century.
The word traces this path: Latin vexare → Old French vexer → Middle English vexen → modern English vex.
(1/4)