Stomach cancer occurs when normally healthy cells within the upper digestive system become cancerous and grow out of control, forming a tumor. This process happens slowly. Stomach cancer tends to develop over many years.