The United Kingdom was a member state of the European Union and of its predecessor the European Communities from 1973 until 2020. Since the foundation of the European Communities, it has been an important neighbour, and was a leading member state until its withdrawal from the EU on 31 January 2020 as a result of Brexit, ending 47 years of membership.