Rainham is a suburban town on the outskirts of east London, England, and part of the London Borough of Havering. Historically part of the county of Essex, Rainham is 13.6 miles (21.9 km) east of Charing Cross and is surrounded by a residential area, which has grown from the historic village, to the north and a commercial area, fronting the River Thames, to the south. As part of the suburban growth of London in the 20th century, Rainham significantly expanded and increased in population, becoming part of Hornchurch Urban District in 1934, and has formed part of Greater London since 1965. The economic history of Rainham is underpinned by a shift from agriculture to industry and manufacture and is now in a period of regeneration, coming within the London Riverside.