When writing or speaking, we follow agreed rules, called grammar.
Our form of communication corresponds to a language code determined by grammar. Grammar is an agreed way of determining rules in the written or verbal form of the English language. Thus, grammar works as an instrument that converges the form of communication of people who speak the same language, in our case English.