Learning alterations in the child population may be linked to gestational diabetes as a causal factor, though this remains an open and highly controversial question. In that sense, it has been reported that maternal hyperglycemia generates a threatening condition that affects hippocampal development in offspring. The pyramidal cells of the CA3 subfield, a key structure in learning and memory processes, are particularly important in cognitive deficiencies. We evaluate the effect of the hyperglycemic intrauterine environment on hippocampal histomorphometry in offspring, correlating it with spatial learning and memory, as well as the morphology of dendrites and spines in 30-day-old pups (P30). The maternal hyperglycemia affected the body weight, height, and brain size of fetuses at 21 days of gestation (F21), newborn pups (P0) and P30 pups from diabetic rats, which were smaller compared to the control group. Consequently, this resulted in a decrease in hippocampal size, lower neuronal density and cytoarchitectural disorganization in the CA3 region of the hippocampus in the offspring at the three ages studied. The behavioral tests performed showed a direct relationship between morpho-histological alterations and deficiencies in learning and memory, as well as alterations in the morphology of the dendrites and spines. Therefore, knowing the harmful effects caused by gestational diabetes can be of great help to establish therapeutic and educational strategies that can help to improve learning and memory in children.