Syntax is the order or arrangement of words and phrases to form proper sentences.
For example, 3 sentences, all containing the same 4 words, each with a different meaning:
“I fucking love women.” (Gif related)
“I love fucking women.” (Gif related)
“I love women fucking.” (Gif related)
Syntax provides context.
Context allows understanding.