The Bhagavad Gita is a dialogue set within the great epic Mahabharata, occurring just as two kindred armies face each other on the field of Kurukshetra. The warrior-prince Arjuna, seeing teachers, elders, and relatives arrayed against him, is overwhelmed with compassion and grief and lays down his bow, refusing to fight. His charioteer is the god Krishna, and the whole poem is Krishna's reply to that despair.
Krishna first answers grief with metaphysics. The self, or spirit, was never born and will never die; it is changeless and indestructible, and merely puts off the body as a person lays aside worn-out robes for new ones. Because the wise see this, they mourn neither for the living nor for the dead, and the fear of killing or being killed loses its hold on the eternal self.
From this the teaching turns to action. A person has a right to the work itself but never to its fruits, so right deeds, not their results, should be the motive. Acting with the heart fixed on duty rather than on gain, indifferent to profit and loss, victory and failure, is the discipline of works by which one stays free even while fully engaged in the world.
Alongside action the Gita teaches inward discipline. The mind is restless and hard to curb, yet by steady practice, dispassion, and self-restraint it can be made even and calm. A person must raise the self by the soul and not let it sink, for the self can be one's best friend or one's worst enemy depending on whether it is mastered or left ungoverned.
Finally the poem rises to devotion and vision. Krishna reveals himself as the Supreme, even granting Arjuna sight of his vast cosmic form, and declares that loving, single-hearted devotion is the highest path. Reassured and resolved, Arjuna takes up his duty again, the three ways of knowledge, action, and devotion drawn together into one teaching on how to live.