The immune system functions on two levels: innate and adaptive. Innate immunity is more primitive and forms a rapid early warning system for global immunity. It evolved to protect single and multicellular organisms from danger.