The corporation tax is a tax levied in the United Kingdom on the profits made by UK-resident companies and associations. It is also levied on non-UK resident companies and associations which trade in the UK through a permanent establishment. The tax was introduced by the Finance Act 1965, which simultaneously removed companies and associations that became liable to corporation tax from the charge to the income tax. The tax borrowed its basic structure and many of its rules from income tax. Recently the tax has come under pressure from a number of sources. Tax competition between jurisdictions has reduced the headline charge to 30 percent; judgments from the European Court of Justice have found that certain aspects of UK corporate tax law are discriminatory under European Union treaties and are expected to continue to do so; and tax avoidance schemes marketed by the big accountancy and law firms and by banks have threatened the tax base. The British government has responded to the last two by introducing ever more complex legislation to counter the threats.