When something is compulsory, it is required or must be done. In most states, it's compulsory for kids to attend school (or an equivalent homeschool) from age six to seventeen.

This adjective is from Medieval Latin compulsorius "using force," from Latin compulsus, from compellere "to force." The Latin suffix –orius corresponds to English -ory "containing or involving." Other English words descended from the same Latin verb are compel and compulsive.

Definitions of compulsory

adj required by rule

“in most schools physical education is compulsory
mandatory, required
morally or legally constraining or binding