H. pylori is typically transmitted through direct contact with saliva, vomit, or fecal matter. It can also be spread through contaminated food or water. Poor hygiene practices and crowded living conditions increase the risk of transmission, making it more common in developing countries.