Why does the Human Body Shiver?

Basically the human body is supposed to remain a constant temperature (approximately 98.6 degrees). When the body gets too hot or too cold a receptor in our brain called the hypothalamus gland triggers a response to either warm the body up by shivering or cool the body down by sweating.