Early in 894 or 895 lack of food obliged the Danes to retire once more to Essex. At the end of the year, the Danes drew their ships up the River Thames and the River Lea and fortified themselves north of London. A frontal attack on the Danish lines failed but later in the year, Alfred saw a means of obstructing the river to prevent the egress of the Danish ships. The Danes realised that they were outmanoeuvred, struck off north-westwards and wintered at Cwatbridge near Bridgnorth. The next year, 896 (or 897), they gave up the struggle. Some retired to Northumbria, some to East Anglia. Those who had no connections in England returned to the continent.