Bacterial CpG motifs are known to induce both innate and adaptive immunity in infected hosts via toll-like receptor 9 (TLR9). Because small oligonucleotides (ODNs) mimicking bacterial CpG motifs are easily synthesized, they have found use as immunomodulatory agents in a number of disease models. We have developed a novel bioinformatics approach to identify effective CpG ODN sequences and evaluate their function as TLR9 ligands in a murine system. Among the CpG ODNs we identified, M5-30 and M6-395 showed significant ability to stimulate TNF-α and IFN-γ production in a mouse macrophage cell line and mouse splenocytes, respectively. We also found that these CpG ODNs activated cells through the canonical NF-κB signaling pathway. Moreover, both CpG ODNs were able to induce Th1-mediated immunity in Mycobacterium tuberculosis (Mtb)-infected mice. Our results demonstrate that M5-30 and M6-395 function as TLR9-specific ligands, making them useful in the study of TLR9 functionality and signaling in mice.