Borrowed from French mirage (“mirage”). By surface analysis, mirar (“to look”) + -agem.
Practice speaking and memorizing "miragem" and many other words and sentences in Portuguese.