 At this point, it historically formed the southern boundary of the medieval city, with Southwark, on the opposite bank, then being part of Surrey.Beyond central London, the river passes Bermondsey, Wapping, Shadwell, Limehouse, Rotherhithe, Millwall, Deptford, Greenwich, Cubitt Town, Blackwall, New Charlton and Silvertown, before flowing through the Thames Barrier, which protects central London from flooding by storm surges.Below the barrier, the river passes Woolwich, Thamesmead, Dagenham, Erith, Purfleet, Dartford, West Thurrock, Northfleet, Tilbury and Gravesend before entering the Thames Estuary near Southend-on-Sea.