How did humanity exist before air conditioning?

I still remember what it’s like to have all of my water weight on the outside of my body. Luckily for me, I will have access to an air conditioner this year. But how did humanity survive so many summers without air conditioning?