Gastric pits are microscopic structures located in the lining of the stomach. These invaginations are crucial for the proper functioning of the stomach as they lead to the gastric glands, which are responsible for the secretion of various substances necessary for digestion.