Syntax refers to the way in which words and phrases are organized together to form sentences and communicate meaning.