Gallstones form in the gallbladder (located under and attached to the liver) they pass into the hepatic duct and can pass through if there small enough. If there to large they'll block the duct and you'll need to have them removed. It's done by a procedure called an E.R.C.P.