Santa Anna convinced U.S. President James K. Polk that he would negotiate a peace treaty if allowed to return to Mexico from exile. However, once he returned, he immediately betrayed the agreement and took command of the Mexican army to fight the U.S.