Raw or undercooked eggs can contain bacteria such as Salmonella, which can cause food poisoning. It's important to cook eggs thoroughly to reduce the risk of illness.