Sweating results in water loss, and the only way to replace the loss (and help your body continue to cool itself) is to drink water frequently.
(your body; to cool; itself) (the only way to replace the loss (and help your body continue to cool itself); is; to drink water frequently)
your body the only way to replace the loss (and help your body continue to cool itself)
to cool is
itself
to drink water frequently