Patanjali's Mahabhashya, a great commentary on Panini's Ashtadhyayi, was composed during the Sunga dynasty. Patanjali lived during the reign of Sunga ruler Pushyamitra Sunga, as evidenced by references in his work to the Greek invasions and contemporary political events.