On August 21, 1991, the coup collapsed. The organizers were detained and Gorbachev was reinstated as president, albeit with his power much depleted.