Cholecystitis is primarily caused by gallstones obstructing the bile ducts, leading to inflammation. Other causes include bile duct problems, tumors, and infections. Risk factors include obesity, a high-fat diet, and certain medical conditions like diabetes.