Dyspepsia and gastritis are two health problems that are often faced by people throughout the world. Although dyspepsia is often taken for granted, lack of knowledge and appropriate attitudes can increase the risk of gastritis and more serious complications. This literature review aims to understand the relationship between knowledge and attitudes towards dyspepsia in an effort to prevent gastritis. Previous research results show that public knowledge about dyspepsia and gastritis is still inadequate, with demographic factors such as gender, age and ethnicity influencing the risk of developing dyspepsia. Dyspepsia is often an early sign of the development of gastritis, with risk factors such as Helicobacter pylori infection, alcohol consumption, certain medications, and an unhealthy diet contributing to both conditions. Therefore, a holistic approach in the prevention, diagnosis, and management of dyspepsia and gastritis is necessary, with increased public education, recognition of risk factors, and implementation of appropriate interventions key to improving overall digestive tract health.