No one who is born in this world can remain inactive. Bhagavad-Gita teaches that each person should follow their dharma (sacred duty) and take actions accordingly.
For example, the dharma of a teacher is to share knowledge. Dharma of a business person is to engage in commerce. Dharma of a warrior is to protect the innocent and fight for justice.
In the Bhagavad-Gita, Sri Krishna says to Arjuna that as a warrior, he has the duty to fight against injustice and lead others who look up to him.
However, Sri Krishna adds that even when one takes actions, it should be done without ego attachments as a matter of dharma that fulfills a higher purpose.
This approach to life is known as karma yoga and is taught by Bhagavan Krishna in the Bhagavad-Gita.
According to karma yoga, one should act carefully according to dharma with respect for all life.
After having done one’s best, one should not be attached to the outcomes. Instead, one should surrender all the fruits (results) of the actions to Lord with the attitude, “Not my will but thy will my Lord.”
Keeping the Lord in mind in all actions purifies the mind and frees the yogi from worry and anxiety.