mandatory (adj.)
1570s, "of the nature of a mandate," from Late Latin mandatorius "pertaining to a mandator," from Latin mandatus, past participle of mandare (see mandate (n.)). Sense of "obligatory because commanded" is from 1818.