By virtue of the United Kingdom's EU membership, Scotland is part of the EU. If Scotland were to leave the UK, it would not automatically assume membership of the EU. The terms under which an independent Scotland might become a member of the EU would have to be negotiated.