Typically, the corporate veil is pierced when the corporation is used to break the law, avoid a debt, commit fraud, or achieve some other wrongful result. In these circumstances, a court will treat the wrongful acts as if they were done by the individuals controlling the corporation, rather than the corporation itself.