Microarray technique was used to analyze the gene expression profiles of shrimp when they were challenged by WSSV and heat-inactivated Vibrio anguillarum, respectively. At 6 h post challenge (HPC), a total of 806 clones showed differential expression profile in WSSV-challenged samples, but not in Vibrio-challenged samples. The genes coding energy metabolism enzyme and structure protein were the most downregulated elements in 6 h post WSSV-challenged (HPC-WSSV) tissues. However, a total of 155 clones showed differential expression in the Vibrio-challenged samples, but not in WSSV-challenged samples. Serine-type endopeptidase and lysosome-related genes were the most upregulated elements in tissues 6 h post Vibrio challenge (HPC-Vibrio). Totally, 188 clones showed differential expression in both 6 and 12 HPC-WSSV and HPC-Vibrio samples. Most of the differentially expressed genes (185/188) were downregulated in the samples of 12 HPC-WSSV, whereas upregulated in the samples at 6 and 12 HPC-Vibrio and 6 HPC-WSSV. The expression profiles of three differentially expressed genes identified in microarray hybridization were analyzed in hemocytes, lymphoid organ, and hepatopancreas of shrimp challenged by WSSV or Vibrio through real-time PCR. The results further confirmed the microarray hybridization results. The data will provide great help for us in understanding the immune mechanism of shrimp responding to WSSV or Vibrio.