The present invention provides a method of modulating various aspects of the immune system. In particular, the present invention teaches the use of diketopiperazines (DKPs) to modulate various aspects of the immune system such as, for example, inflammation, T-cells and various cytokines.