An Etymological Dictionary of the German Language/Annotated/Gesetz

Gesetz, neuter, ‘law, decree, statute,’ from the equivalent Middle High German gesętze, of which the variant gesętzede occurs in the same sense, Old High German gisęzzida, feminine; akin to setzen, whence also Satzung.