How does the Body Maintain Homeostasis?

As we all know the human body is an exquisite machine partly because it maintains functionality in a variety of environments. Also humans can thrive conditions ranging from the arctic to the equator.