Hydration for endurance events isn't just about drinking enough water, it's about drinking the right things at the right times so your body can actually use what you're putting in. Go too far one way and you're dealing with a heavy stomach and constant bathroom stops. Go too far the other way and you're looking at cramping, dizziness, and a performance that falls off a cliff in the back half of the session. Getting this right takes a bit of planning, but it's not complicated once you understand the basics.
Sweat rate varies enormously from person to person, which is why generic advice like "drink two litres a day" doesn't mean much for someone training for hours in the heat. A simple way to get a sense of your own losses is weighing yourself before and after a long session without drinking during it, then comparing the difference. That gap is roughly what you've sweated out, and it gives you a starting point for how much fluid you actually need to replace during similar efforts.
Water alone isn't always enough for longer sessions, because sweat carries sodium and other electrolytes out with it, not just fluid. When you're out there for over an hour, especially in the heat, replacing electrolytes alongside fluid matters more than people assume. An Electrolyte Powder mixed into your bottle gives you sodium without the sugar load of a lot of sports drinks, which is handy if you're already getting carbohydrate from gels or food during the session and don't need more coming from your fluids.
Pre-hydrating matters just as much as what you do during the event. Turning up already behind on fluid means you're trying to dig out of a hole for the whole session instead of just maintaining. Getting a reasonable amount of fluid and electrolytes in over the couple of hours before you start puts you in a far better position than trying to chug water five minutes before the gun goes.
During the session itself, little and often beats big gulps every so often. Sipping consistently keeps fluid moving through your system without sitting heavy in your stomach, which matters a lot when you're also trying to digest carbohydrate at the same time. If you're doing back-to-back training days or a multi-day event, a Protein Water post-session can help on the recovery side too, giving you fluid and protein in one go when a full meal isn't practical straight after finishing.
Recovery hydration is where a lot of endurance athletes drop the ball, treating the finish line as the end of the job when it's really just the start of getting ready for the next session. Replacing fluid and electrolytes in the hours after a long effort helps you turn up to your next training day without carrying a deficit forward. Magnesium Glycinate is also worth having in the cupboard if you're prone to cramping, since magnesium plays a role in muscle function alongside your electrolyte balance.
Hydration strategy isn't glamorous and it won't show up in a highlight reel, but it's one of the most controllable parts of endurance performance. Work out your sweat rate, plan your fluid and electrolyte intake around it, and don't wait until you're thirsty to start drinking.

