Gallstones form due to multiple factors: excessive fatty foods increase cholesterol in bile, inherited body chemistry affects bile composition, and reduced gallbladder motility prevents complete emptying allowing crystals to form. These factors often work together to create ideal conditions for gallstone development.