Marginal Cost of Cap & Taxes

Can someone please explain how increasing taxes reduces the marginal cost of capital?

cost of debt = before tax cost of debt (1-marginal tax rate) if your marginal tax rate increases, cost of debt falls