Therefore, without being attached to the fruits of activities, one should act as a matter of duty; for by working without attachment, one attains the Supreme.
Purport
In earlier shlokas, Bhagvan Shri Krishna explained Arjuna about all the facts of performing duties and its related process. In this Shloka Bhagvan Shri Krishna summarizes all and gives the decision declaration. Bhagvan explained that those who perform their duty without being attached to the fruits of action becomes free from the bonds of actions and finally achieves the liberation.
This Shloka also summarizes that performing duty without attached to the fruits is the core of Karma Yoga.