This paper examines how governments can optimally audit to discourage tax avoidance. We assume that an accounting firm designs and promotes strategies for tax avoidance. This firm adapts the quality and diversity of these strategies in response to shifts in government policies. We investigate when it is more effective to approve some methods while cracking down on others, rather than targeting all tax-avoidance activities uniformly. We find that selectively enforcing against specific methods can be optimal. This approach not only reduces the quality but also limits the variety of tax avoidance activities in the market and positively impacts the government’s tax revenue collection. Our analysis provides practical insights, linking the costs of auditing with the interaction between enforcement, the quality of tax avoidance methods, and tax revenue outcomes.