Complex sentence: The Vietnamese devised water puppetry as a way to satisfy these spirits, and as a form of entertainment, using what natural medium they could find in their environment.
Split into simpler sentences: The Vietnamese devised water puppetry as a way to satisfy these spirits. The farmers in this region devised a form of entertainment and worship using what natural medium they could find in their environment.