A model of a thermal transistor to control heat flow is reported. Like its electronic counterpart, the thermal transistor is a three-terminal device with the important feature that the heat current through two terminals can be switched or modulated by the temperature of the third terminal. The thermal transistor model is possible because of the negative differential thermal resistance.