Borrowed from Latin mānsiōnem. Compare Spanish mansión. See also the doublet mesão, borrowed through Old French.
Practice speaking and memorizing "mansão" and many other words and sentences in Portuguese.