The authority's powers and duties are largely provided for in statute (such as the Gas Act 1986, the Electricity Act 1989, the Utilities Act 2000, the Competition Act 1998, the Enterprise Act 2002 and the Energy Act 2004, the Energy Act 2008 and the Energy Act 2010) as well as arising from directly effective European Union legislation. Duties and functions concerning gas are set out in the Gas Act and those relating to electricity are set out in the Electricity Act.