But during the Second World War, Flying Scotsman was repainted in wartime black, in common with all railway stock. After the war, it became green again and was rebuilt as an A3 Pacific. In 1948, British Railways was formed and rail travel in Britain was nationalised.