Complex sentence: Later he moved into other provinces, but was defeated at various time by the Ming forces; he would surrender, for example in 1631 and 1638, but then later regrouped and rebelled.
Split into simpler sentences: Later he moved into other provinces, but was defeated at various time by the Ming forces. Zhang would surrender when necessary, for example in 1631 and 1638, but would then later regrouped and rebelled.