Bhartṛhari (Devanagari: भर्तृहरि; also romanised as Bhartrihari; fl. c. 5th century CE) is a Sanskrit writer to whom are normally ascribed two influential Sanskrit texts:
In the medieval tradition of Indian scholarship, it was assumed that both texts were written by the same person. Modern philologists were sceptical of this claim, owing to an argument that dated the grammar to a date subsequent to the poetry. Since the 1990s, however, scholars have agreed that both works may indeed have been contemporary, in which case it is plausible that there was only one Bhartrihari who wrote both texts.
Both the grammar and the poetic works had an enormous influence in their respective fields. The grammar in particular, takes a holistic view of language, countering the compositionality position of the Mimamsakas and others.
The poetry constitute short verses, collected into three centuries of about a hundred poems each. Each century deals with a different rasa or aesthetic mood; on the whole his poetic work has been very highly regarded both within the tradition and by modern scholarship.
The name Bhartrihari is also sometimes associated with Bhartrihari traya Shataka, the legendary king of Ujjaini in the 1st century.
The account of the Chinese traveller Yi-Jing indicates that Bhartrihari's grammar was known by 670 CE, and that he may have been Buddhist, which the poet was not. Based on this, scholarly opinion had formerly attributed the grammar to a separate author of the same name from the 7th century CE. However, other evidence indicates a much earlier date:
Bhartrihari was long believed to have lived in the seventh century CE, but according to the testimony of the Chinese pilgrim Yijing [...] he was known to the Buddhist philosopher Dignaga, and this has pushed his date back to the fifth century CE.
A period of c. 450–500 "definitely not later than 425–450", or, following Erich Frauwallner, 450–510 or perhaps 400 CE or even earlier.