The body's ability to maintain a stable internal temperature despite changes in the external environment.