Consider, for example, a tax dodge Samsung is alleged to have engaged in. Samsung Electronics makes products in South Korea, then sell them at cost to Samsung Distribution, which is an affiliated company in a low-tax jurisdiction. Samsung Distribution then exports the products at market price to Best Buy, etc. Samsung Electronics books little or no profits in South Korea--all the profits are booked by Samsung Distribution in the low-tax jurisdiction.
There is also a corporate-entity angle to this. Operating as a separate corporation has benefits: if one goes bankrupt, its creditors cannot reach the assets of a related entity. But if transactions between related entities are not arm's-length, it's easy to shift money around between them and abuse the protections of separate corporate forms by, e.g., leaving riskier lines of business undercapitalized in case of a tort judgment.