The second half witnessed the dismantling of the Empire and the UK rebuilding itself into a modern and prosperous European nation .