Fetching details from the dictionary...

duty; obligation; responsibility
国民には納税の義務があると法律で定められている。
The law stipulates that citizens have the duty to pay taxes.
この仕事は私の義務だと考えて取り組んだ。
I tackled this work considering it my duty.
義務教育は中学校までとなっている。
Compulsory education is up to junior high school.