The Mexican Constitution of 1917 gave the state the right to expropriate property, including that owned by foreign nations, when the property was deemed useful for improving social conditions. This caused rising US tensions in the 1920s.Because of a good neighbor policy, the United States accepted compensation for seized assets. The United States did enforce a boycott of Mexican oil for thirty years.
link