Syntax refers to the structure and organization of sentences in a language, including how words and phrases are combined to create meaning. It also encompasses the study of how sentences are used in different contexts and how they can vary between languages.