The authors examined 14-to 26-month-old infants' understanding of the spatial relationships between objects and apertures in an object manipulation task. The task was to insert objects with various cross-sections (circular, square, rectangular, ellipsoid, and triangular) into fitting apertures. A successful solution required the infant to mentally rotate the object to be fit into the aperture and use that information to plan the action. The object was presented standing up in half of the trials; in the other half, it was lying down. The results showed that infants solved the problem consistently from age 22 months and that a successful solution was associated with appropriate preadjustments before the hand arrived with the block to the aperture. No sex differences were found.