They were built mainly by nations like Germany during World War II to protect important industries from aerial bombardment.
They were built by nations like Germany during World War II.  The purpose was to protect important industries from aerial bombardment.