Built by Offa , king of Mercia , in the eighth century , it called upon remarkable levels of manpower and organisation , and was unsurpassed as a work of engineering until the canals and railways of the Industrial Revolution .