Despite this opposition, war did ensue, Mexico was defeated and the United States gained more territory that was added to Texas. But as a result of the same war, the United States also gained California, which would become a free state, along with a large portion of what would become the American south-west