The Bhagavad Gita is likely a multi-authored work, inserted into a massive multi-generationally authored encyclopaedic Ancient Indian epic, the Mahabharat.
The core story is that of a mythologised civil war; there are good people and good arguments on both sides, but the protagonists’ side is led by a good would-be king, the antagonists by a villain.