Complex sentence: The goal of weatherstripping is to prevent rain and water from entering entirely or partially and accomplishes this by either returning or rerouting water.
Split into simpler sentences: The goal of weatherstripping is to prevent rain and water from entering entirely or partially. Weatherstripping accomplishes this by either returning or rerouting water.