Complex sentence: Nogales has been governed by the Revolutionary Institutional Party for its entire history until the 2006 elections when power shifted to the National Action Party.
Split into simpler sentences: Nogales has been governed by the Revolutionary Institutional Party for its entire history. At least up until the year the 2006 elections when power shifted to the National Action Party.