Syntax
The system of rules according to which words work together to make sense is called syntax.