The Mexican War of Independence had a significant impact on Mexico's relationships with both Spain and the United States. After gaining its independence, Mexico was no longer subject to Spanish rule, allowing it to establish diplomatic relations with the United States on its own terms. This new relationship allowed Mexico to strengthen its economy by signing trade deals with the US and become a more powerful nation in the region. Additionally, it gave Mexico a greater say in its foreign policy, allowing it to shape its own destiny without Spain's influence.