Unlike in the legend, where the ditch was dug in a very short period by giants, it would have taken a long time to construct.  It is thought to have been constructed by Penda, The Saxon King of the East Angles during the late 6th or early 7th centuries as a defensive barrier.