The role in adhesion of the toes and lamellae -intermediate-sized structures -found on the gecko foot remains unclear. Insight into the function of these structures can lead to a more general understanding of the hierarchical nature of the gecko adhesive system, but in particular how environmental topology may relate to gecko foot morphology. We sought to discern the mechanics of the toes and lamellae by examining gecko adhesion on controlled, macroscopically rough surfaces. We used live Tokay geckos, Gekko gecko, to observe the maximum shear force a gecko foot can attain on an engineered substrate constructed with sinusoidal patterns of varying amplitudes and wavelengths in sizes similar to the dimensions of the toes and lamellae structures (0.5 to 6 mm). We found shear adhesion was significantly decreased on surfaces that had amplitudes and wavelengths approaching the lamella length and inter-lamella spacing, losing 95% of shear adhesion over the range tested. We discovered that the toes are capable of adhering to surfaces with amplitudes much larger than their dimensions even without engaging claws, maintaining 60% of shear adhesion on surfaces with amplitudes of 3 mm. Gecko adhesion can be predicted by the ratio of the lamella dimensions to surface feature dimensions. In addition to setae, remarkable macroscopic-scale features of gecko toes and lamellae that include compliance and passive conformation are necessary to maintain contact, and consequently, generate shear adhesion on macroscopically rough surfaces. Findings on the larger scale structures in the hierarchy of gecko foot function could provide the biological inspiration to drive the design of more effective and versatile synthetic fibrillar adhesives.