Sanskrit grammar is the study of the language’s structure. The earliest known work on Sanskrit grammar is the Ashtadhyayi, written by Panini in the 4th century BC. Panini’s grammar is the most comprehensive and systematic treatment of Sanskrit grammar to date.