Something that must be done; required by law or rule.
example: School uniforms are compulsory.
» Dictionary