Syntax is the study of the rules that control how language is structured first into clauses and then sentences. It can be compared with semantics, which is the study of how meaning is created by words.