c. 1600, from French syntaxe (16c.) and directly from Late Latin syntaxis, from Greek syntaxis "a putting together or in order, arrangement, a grammatical construction," from stem of syntassein "put in order," from syn- "together" (see syn-) + tassein "arrange" (see tactics).
https://www.etymonline.com/word/syntax
(One of my favourite wwebsites.)