Does trade liberalization aggravate tax avoidance? We build a three‐country model of tax competition consisting of two nonhaven countries and one tax haven in which goods are traded between the nonhavens and firms may shift profits to the tax haven. When the nonhavens cooperate, the reduction in trade costs does not change the degree of tax avoidance. In contrast, when the nonhavens do not cooperate, the equilibrium tax rates become higher, resulting in more tax avoidance. Furthermore, trade liberalization strengthens the tax competition between nonhavens, which further increases the tax‐avoidance activities.