Recent work suggests that obesity may adversely affect cognitive behavior. To examine this suggestion, the effects of feeding a standard chow diet, and either supplemental sugar or fat on the development of obesity and performance on a test of spatial learning, the Morris Water Maze (MWM), were assessed in young male Long–Evans rats. Rats given access to a sucrose solution or dietary fat in addition to the chow diet consumed approximately 10% more calories per day, gained more weight, and had larger epididymal fat pads than rats fed the chow diet alone. Moreover, rats fed the supplemental sucrose took significantly more time to find a hidden platform in the MWM than rats fed the chow diet alone or chow and supplemental fat. Additionally, when tested 10 days after the initial training trials, rats given sucrose displayed deficits in long-term spatial memory. After 6 weeks on the diets, fasting blood glucose and serum triglyceride concentrations were significantly higher in sucrose-fed rats than in rats eating only the standard diet. These results indicate that diet-induced obesity resulting from excess sucrose intake, but not fat intake, in young animals impairs spatial learning and memory. It is hypothesized that these deficits arise from metabolic insults that leave the brain vulnerable to alterations in insulin sensitivity and glucose metabolism.