Gastric cancer is one of the most prevailing cancers with high morbidity and mortality. Limitations in the current diagnosis and therapy, specially lacking of specific molecular therapeutic targets, ask for the development of new strategies. Aptamer, a newly developed adaptive molecule, could be used in clinical detection and therapy because of its high affinity and specificity. As no aptamer has ever been developed in preventing gastric cancer so far, we were the first who cloned such an aptamer specifically targeting gastric cancer. The aptamer was selected by systematic evolution of ligands by exponential enrichment with gastric cancer cell-line HGC-27 as target cell line and immortalized gastric epithelial cell-line GES-1 as control cell line. The affinity and specificity of candidate aptamers were examined by flow cytometry, confocal imagining and aptamer-based histochemistry staining. After 19 cycles of systematic evolution of ligands by exponential enrichment and subsequent cloning and sequencing, an aptamer with the highest affinity and specificity (nominated as AGC03) among candidates was screened out from a random single-stranded DNA pool. Moreover, AGC03 could not only specifically bind to gastric cancer cells (the equilibrium dissociation constant value was 16.49 ± 0.40 nM) in vitro, but also recognize cancer cells in human cancer tissue. Our most important finding is that AGC03 could even be internalized into cells automatically. In conclusion, we obtained a novel aptamer specifically targeting gastric cancer,which is an effective tool for both gastric cancer diagnosis and drug delivery.