It refers to a duty or commitment to do something.
Here's an example:
* "He felt an obligation to help his friend."