Alta California ('Upper California'), also known as Nueva California ('New California') among other names, was a province of New Spain formally established in 1804. Along with the Baja California peninsula, it had previously comprised the province of Las Californias, but was made a separate province in 1804 (named Nueva California). Following the Mexican War of Independence, it became a territory of Mexico in April 1822 and was renamed Alta California in 1824.