The study of the rules governing the structure of sentences and how words are combined to form meaningful phrases.