This study develops a framework for the strategic interaction of firms that have to decide between adhering to and violating legislation. Depending on how deterring enforcement is various degrees of compliance with the law will arise in equilibrium. For an agency that targets a certain compliance rate more resources per firm should be allocated to industries with strong demand and high costs for adhering to legislation. Whenever some degree of non-compliance among competing firms can be expected, more inspection resources are needed in markets where products are highly differentiated and/or the number of firms is small.