 His increasingly autocratic rule dismayed many and coup overthrew him in 1823.Mexico became a federated republic and promulgated a constitution in 1824.While General Guadalupe Victoria became the first president, serving his entire term, the presidential transition became a less an electoral event and more one by force of arms.