The first was built in the 5th century BC .
Several walls have been built since the 5th century BC that are referred to collectively as the Great Wall , which has been rebuilt and maintained from the 5th century BC through the 16th century .