Sorry to be pedantic, but tax avoidance is completely legal and encouraged. Tax evasion is illegal.
In the former, you make legal financial decisions that minimize your tax burden, in the latter, you illegally hide your wealth. It's not always black and white, but the distinction is important.