The bile duct system carries bile from your liver and gallbladder into the first part of your small intestine (the duodenum). In most cases cholangitis is caused by a bacterial infection, and often happens suddenly. But in some cases it may be long-term (chronic).