From Teflpedia

Obligation (/ɒblɪgeɪʃən/) is "a social, legal, or moral requirement, duty, contract, or promise that compels someone to follow or avoid a particular course of action"[1]

Obligation is different from necessity because it is imposed by a person or society.

In English, obligation is expressed using modal verbs, especially must and have to.