The Ashtavakra Gita (Sanskrit in Devanagari: अष्टावक्रगीता; IAST: aṣṭāvakragītā) or the Song of Ashtavakra is a classical Advaita Vedanta scripture. It is written as a dialogue between the sage Ashtavakra and Janaka, king of Mithila.
Radhakamal Mukerjee, an Indian social scientist, dated the book to the period immediately after the Hindu scripture Bhagavad Gita (c. 500–400 BC). J. L. Brockington, emeritus Professor of Sanskrit at the University of Edinburgh, places the Ashtavakra Gita much later, supposing it to have been written either in the eighth century AC by a follower of Shankara, or in the fourteenth century during a resurgence of Shankara's teaching. Sri Swami Shantananda Puri suggests that since the book contains the seed of the theory of non-creation Ajata Vada developed later by Gaudapada in Mandookya Karika, this book comes from a period prior to that of Gaudapada and hence prior to Adi Shankara.
Ashtavakra is probably identical to the holy sage with the same name who appears in Mahabharata, though the connection is not clearly stated in any of the texts. Mukherjee identifies Janaka as the father of Sita and disciple of the sage Yajnavalkya in the Brihadaranyaka Upanishad. Janaka is also depicted as a king who has attained perfection in the Bhagavad Gita (III,20,25).