The Welsh Parliament was created by the Government of Wales Act 1998, which followed a referendum in 1997. On its creation, most of the powers of the Welsh Office and Secretary of State for Wales were transferred to it. The Senedd had no powers to initiate primary legislation until limited law-making powers were gained through the Government of Wales Act 2006. Its primary law-making powers were enhanced following a Yes vote in the referendum on 3 March 2011, making it possible for it to legislate without having to consult the British parliament, nor the Secretary of State for Wales in the 20 areas that are devolved.