Complex sentence: Before the war, Sonora was the largest entity in Mexico, but as a result of the Gadsden Purchase the northern most part of the state became part of the United States.
Split into simpler sentences: Before the war, Sonora was the largest entity in Mexico. As result of the Gadsden Purchase the northern most part of the state became part of the United States.