The United Kingdom is a sovereign state that has never been a colony or part of another country. It evolved through unions (England/Wales, Scotland, Ireland) and has been an independent power for centuries. The concept of "gaining independence" does not apply to the UK itself (though many former colonies gained independence from it).