to the contrary

definition: contrary to expectations
example:
speech part: adverb
synonyms: contrarily

How to the contrary is being used?