Note: Post-colonial state established in 1821 and lasting until becoming a republic in 1824 (and then again, from 1864-1867, after French intervention). Its territory extended northwest through California in the present-day United States, and south through present-day Costa Rica.