Inherited from Old Galician-Portuguese -mente, inherited from Latin mente. Compare Galician -mente.
Practice speaking and memorizing "-mente" and many other words and sentences in Portuguese.