What do you wish you knew when buying a house?

If all you had was a small wet spot in the basement after the rains we just had, I wouldn’t worry too much about it. It was an insane amount of rain. Our sump pump couldn’t keep up and we had some water in our basement.