This paper explores the consequences of tax enforcement policies for monetary policy. Agents may evade taxes by working in the informal sector, but they are detected with positive probability. Workers are rewarded with government benefits that are proportional to formal (taxed) work. When enforcement is imperfect and collecting taxes is costly, the optimal inflation rate is positive and inflation becomes a second-best tax. Deviations from the Friedman rule are optimal and depend on the tax enforcement policies. Using U.S. data, we compute the quantitative effect of different tax structures on inflation and interest rate. We show that different tax enforcement and government spending (benefits) policies induce different optimal outcomes for inflation and interest rates.