I mean, I’ve heard that you can typically only survive about three days without water, but what exactly causes your body to fail when you dehydrate too much?

I guess one point is lack of salts (if you sweat a lot) but I’m specifically wondering about lack of water (although a closer explanation about how lack of salts will kill you is also appreciated)