Thousands left homeless