In this research, the behavior of a cavitation bubble collapse adjacent to a three dimensional patterned structure was examined through numerical methods. The numerical analysis utilized a compressible two phase flow solver integrated within the open source software OpenFOAM. We specifically investigated how the patterned structure influences the cavitation of a single bubble during its collapse at two distinct relative wall distances, and we illustrated the corresponding pressure and velocity contours surrounding the bubble as it collapses near the boundary at these two relative wall distances. Additionally, the behavior of the bubble near a smooth surface was simulated to contrast the effects of the patterned structure with those of the unaltered surface. The findings indicated that the microjet directed towards the surface wall during the initial collapse of the bubble was influenced by the effects of the patterned structure. Moreover, the maximum pressure exerted on the patterned structure as aresult of the bubble's collapse was considerably lower than the pressure impact experienced on the smooth surface. Furthermore, the equivalent bubble radius and the peak jet velocity during the bubble's initial collapse were significantly reduced due to the influence of the patterned structure. This study offered new perspectives on the intricate fluid dynamics of a cavitation bubble in proximity to a bio inspired structure, which may hold significance for the design and operation of various engineering applications that are susceptible to erosion caused by cavitation bubbles near a boundary.