compulsory
Adjective
B2 – Upper-Intermediate
Required by a rule or law, so there's no real choice about doing it.
"Compulsory" is common in education and law, as in "compulsory education".
Synonyms
mandatory
obligatory
Antonyms
optional
voluntary