From Proto-West Germanic *þwerh (“against, contrary”). Cognate with Old English þweorh and Dutch dwars.
thwerh