At the start of the last century the UK had a million people working in the coal mining industry. Now it is effectively zero.
That reduction happened over a long period but it wasn't without its problems. Even now there are old coal mining villages that have never really recovered economically.