Most of the Opata supported the French during their brief rule of Mexico from 1864 to 1867, as did most Sonoran Indians. An Opata, Refugio Tanori, became a general in the military forces supporting the Imperial rule of Maximilian I. When Tanori's forces were defeated, he fled to Guaymas, and boarded a ship headed for Baja California. Before the ship reached the peninsula, it was stopped by Republican forces. Tanori was captured and executed. The retribution of the Mexicans against the Opata after the defeat of the French occupation resulted in the loss of nearly all of their remaining lands and the end of their resistance to Mexican rule.