After independence from Spain was achieved, the Federal District was created in 1824