Complex sentence: It is the county seat of Pembina County--it is "not" in nearby Cavalier County.
Split into simpler sentences: It is the county seat of Pembina County. Although they bear the same name, Cavalier is not located in nearby Cavalier County.