Juan Perón helped engineer a military coup in 1943. As secretary of labour (1943–45), he championed unions and gave workers more rights, winning their loyalty and becoming vice president. After military rivals arrested him in October 1945, workers rallied to his cause, and he was soon released. The next year Perón was elected president.