Gluconeogenesis primarily occurs in the liver and, to a lesser extent, in the kidneys. In the liver, it takes place in both the cytoplasm and the mitochondria of hepatocytes. The cellular architecture of these organs facilitates the efficient execution of this metabolic pathway.