Original: To prevent this, silkworm cocoons are boiled. The heat kills the silkworms and the water makes the cocoons easier to unravel.
Simplified: Instead, silkworm cocoons are thrown into boiling water, which kills the silkworms and also makes the cocoons easier to unravel.