Definitions of duty

a legal obligation

The Senate is under no constitutional duty to act on nominations.

an obligation, action or task required by a person's job or position

Regardless of the title of their position, it was their duty to consider the safety, health and welfare of the public.

used to refer to rights and to the standards of care imposed by a legal relationship

The family's legal claim stated that the hotel failed in its duty of care to residents.