Born out of a fiery insurgency against Spanish colonial rule, the young Mexican nation asserted itself and triumphed despite numerous revolutions and invasions.