Complex sentence: Kearny declared himself the military governor of the New Mexico Territory on August 18 and established a civilian government there before he took the remainder of his army and moved on to Alta California.
Split into simpler sentences: Kearny declared himself the military governor of the New Mexico Territory on August 18 and established a civilian government. He then took the remainder of his army and moved west to Alta California.