noun:a moral or legal obligation; a responsibility
It is the duty of every citizen to pay their taxes.
noun:a task or action that someone is required to perform as part of their job
One of the security guard's duties is to patrol the building at night.