Certain foods to avoid when pregnant due to potential bacterial contamination or harmful substances. High-mercury fish, unpasteurized dairy, deli meats, raw or undercooked meats, and some soft cheeses should be avoided to prevent foodborne illnesses or potential harm to the developing fetus. Ensuring a balanced diet with plenty of fruits, vegetables, and adequate nutrients is crucial for maternal and fetal health.