During the Mexican revolution, the U.S. Ambassador to Mexico, Henry Lane Wilson backed the coup d'état of 1913, which deposed then assassinated democratically elected president Francisco I. Madero, leading to the military rule of Victoriano Huerta, which was not recognised by the US. Later, in April 1914, the USA army invaded Veracruz and occupied it for 7 months, helping to trigger Huerta's resignation and the restoration of democratic government under Venustiano Carranza. And later in 1916 USA invaded Mexico through the northern border in an attempt to kill Pancho Villa and his revolutionary army.