When the war of Mahabharata begin, Arjuna was reluctant to fight. Krishna ultimately gave him a discourse and prevailed upon him to do his duty. This discourse at the battlefield is compiled in the form of Bhagwad Gita. It forms a part of Mahabharata.