It describes how something is done, emphasizing that it is done in a formal manner.
Here are some examples:
* "We were formally introduced at the dinner party." (Describes how the introduction happened)
* "The president formally addressed the nation." (Describes how the address happened)
* "They formally requested a refund." (Describes how the request was made)