Simply put, Syntax is the collection of rules which go together to form sentences and phrases in a language.

For example, the rules of syntax say that an English sentence can be formed thus:
{subject} + {verb} + {object}
Michael + rowed + the boat
The rules of syntax say this is not permissible, however:
{subject} + {object} + {verb}
* Michael + the boat + rowed…