Robert the Bruce routed Edward II's army at Byland, nearly capturing the English king himself as he fled through the Yorkshire countryside. The humiliating defeat forced England to accept Scottish independence in practice, ending decades of attempts to subjugate Scotland by military force.