 The war had dragged on since 1917 and cost Spain $800 million.The late 1920s were prosperous until the worldwide Great Depression hit in 1929.In early 1930 bankruptcy and massive unpopularity forced the king to remove Primo de Rivera.