1530s, "agreement as to form," from formal + -ity or else from Middle French formalité (15c.) or Latin formitalitatem. Sense of "conformity to established rule" is from 1590s; meaning "something done for the sake of form" is from 1640s. Related: Formalities.
a mere formality
the formality of his voice made the others pay him close attention
courtroom formality
formable
formal
formaldehyde
formalism
formalistic
formality
formalize
formally
format
formation
formative