Complex sentence: He drives the cat from the basket and locks her in the greenhouse, then frees Benjamin and Peter, and punishes them for going to Mr. McGregor's garden by whipping them with a switch he had brought.
Split into simpler sentences: He drives the cat from the basket and locks her in the greenhouse, then rescues Benjamin and Peter. But he also punishes them for going to Mr. McGregor's garden by whipping them with a switch he had brought.