Introduction Gastric cancer is the fourth most common type of cancer and the second leading cause of cancer-related death in the world. The etiology of gastric cancer includes Helicobacter pylori infection, diet, lifestyle, tobacco, alcohol, and genetic susceptibility. Upper gastrointestinal endoscopy (UGIE) is the most effective method for examining the upper gastrointestinal tract as compared to the other examination tools. Objective To study the histopathological finding of upper gastrointestinal endoscopic biopsies and its association with H. pylori in cases of carcinoma stomach. Materials and methods This was a hospital-based observational study carried out in the Department of Surgery, at Maharaja Krushna Chandra Gajapati Medical College, Berhampur, a tertiary care hospital in Eastern India. Study population consisted of 106 patients for a period of 2 years from July 2019 to June 2021, after due consideration of the inclusion and exclusion criteria. Endoscopic location and pathological types of the gastric lesion were noted, and all biopsy specimens were investigated to see the presence of H. pylori by rapid urease test (RUT) and histological examination in the form of Giemsa and H&E stain. Results In the present study of 106 cases, 62 cases (58.49%) were found to be positive for H. Pylori by RUT and 72 cases (67.92%) were positive for H. pylori by smear staining. In histopathological study, 72 cases (67.92%) were of intestinal type of carcinoma and 34 cases (32.07%) were of diffuse type of carcinoma. Smear for H . pylori was positive in 56 cases (77.78%) among the 72 cases of intestinal type of carcinoma stomach. Whereas only 16 cases (47.05%) were found to be smear-positive for H. pylori among the 34 cases of diffuse type of lesion. Irrespective of histological type, H. pylori was positive in 67.92% of patients with carcinoma stomach. This association was statistically significant (p<0.001) and indicates its role in intestinal type of gastric carcinoma. Conclusion There is a high frequency of H. pylori infection in cases of stomach cancer. This study confirmed the higher association of H. pylori infection with gastric cancer. Its association with the intestinal histological variety of stomach cancer is more common than diffuse type. The prevalence of H. pylori infection in distal stomach carcinoma is higher than proximal.