Recent studies have presented conflicting results on the association between gastric acid suppression and spontaneous bacterial peritonitis (SBP). The long-term effects of gastric acid suppression on SBP in cirrhotic patients remain unclear. This study evaluated the risk of SBP in advanced decompensated cirrhotic patients with long-term gastric acid suppression.