the great depression is the deepest and longest-lasting economic downturn in the history of the usa which begin on october 29 , 1929 with the us stock market crash , lasting for ten years until 1939 and placing millions of americans out of work as businesses close and farmers walk off their ranches for food under president herbert hoover .