Complex sentence: This was the last active role the Imperial Army played in the New Zealand Wars, within a few months the regiments had all been withdrawn.
Split into simpler sentences: This was the last active role the Imperial Army played in the New Zealand Wars. Within a few months the regiments had been withdrawn.