to learn a skill or a language so well that you have no difficulty with it:
the skills needed to master a new language
I never quite mastered the art of walking in high heels.
to manage to control a strong emotion [= overcome]:
He had learned to master his fear of heights.