Toll-like receptors (TLRs), key proteins in innate immunity, appear to contribute to the inflammatory environment in carcinogenesis. Thus, we aimed to evaluate the tissue expressions of TLR1, TLR2, TLR4, TLR5, TLR7, and TLR9 as potential prognostic biomarkers in gastric cancer. We applied immunohistochemistry to study tissue samples from 313 patients operated on for gastric adenocarcinoma between 2000 and 2009 at the Department of Surgery, Helsinki University Hospital, Finland. A high expression of each TLR studied associated with the high expression of each other and with the intestinal-type histology (p < 0.001 for all). Five-year disease-specific survival among patients with a high TLR5 was 53.4% (95% confidence interval [CI] 43.4–63.4), whereas among patients with a low TLR5 it was 37.6% (95% CI 30.0–45.2; p = 0.014). A high TLR5 expression functioned as a marker of a better prognosis, particularly among those with a stage II disease (hazard ratio [HR] 0.33; 0.13–0.83; p = 0.019) or an intestinal-type cancer (HR 0.58; 95% CI 0.34–0.98; p = 0.043). In this study we show, for the first time, that a high TLR5 tissue expression may identify gastric cancer patients with a better prognosis, particularly among those with a stage II disease or an intestinal-type cancer.