Complex sentence: The republic ceased to operate independently in 1835 because the New Hampshire militia occupied the area, it was incorporated as Pittsburg in 1840.
Split into simpler sentences: The republic ceased to operate independently in 1835, when the New Hampshire militia occupied the area. The area was incorporated as Pittsburg in 1840.