Scotland is a constituent country of the United Kingdom of Great Britain and Northern Ireland (being a part of the "Great Britain" part of the UK).
Scotland is also a devolved country, which means that it legislates its laws, controls its education and some other stuff. Here's a video about it on YouTube:
https://www.youtube.com/watch?v=rNu8XDBSn10