As social insects, termites live in densely populated colonies with specialized castes under conditions conducive to microbial growth and transmission. Furthermore, termites are exposed to xenobiotics in soil and their lignocellulose diet. Therefore, termites are valuable models for studying gene expression involved in response to septic injury, immunity and detoxification in relation to caste membership. In this study, workers and soldiers of the Formosan subterranean termite, Coptotermes formosanus, were challenged by bacterial injection or by no-choice feeding with a sublethal concentration (0.5%) of phenobarbital. Constitutive and induced expression of six putative immune response genes (two encoding for lectin-like proteins, one for a ficolin-precursor, one for the Down syndrome cell adhesion molecule, one for a chitin binding protein, and one for the gram-negative binding protein 2) and four putative detoxification genes (two encoding for cytochrome P450s, one for glutathione S-transferase, and one for the multi antimicrobial extrusion protein), were measured via quantitative real time polymerase chain reaction and compared within and among 1) colonies, 2) treatment types and 3) castes via ANOVA. Eight genes were inducible by septic injury, feeding with phenobarbital or both. Colony origin had no effect on inducibility or differential gene expression. However, treatment type showed significant effects on the expression of the eight inducible genes. Caste effects on expression levels were significant in five of the eight inducible genes with constitutive and induced expression of most target genes being higher in workers than in soldiers.