The regulation and maintenance of the constant internal conditions in an organism.