The cystic duct is a small tube that connects the gallbladder to the common bile duct, allowing bile to flow from the gallbladder into the common bile duct and then into the small intestine for digestion. It plays a crucial role in the digestion of fats by controlling the release of stored bile.