Grammar is the set of rules that helps us speak, read, and write a language correctly. It explains how words are formed and arranged to make meaningful sentences.