We present an analytical method to achieve highly nonparaxial, azimuthally polarized structured beams that, when propagating through an absorbing stratified media, can assume in the last semi‐infinite layer approximately any desired longitudinal intensity pattern within spatial regions few times larger than the wavelength. The possibility of managing the properties of a highly nonparaxial beam under adverse conditions, such as multiple reflections in stratified structures and energy loss to the material media, may be of great importance in many different optical applications, like, trapping and micromanipulation, remote sensing, thin films, medical devices, medical therapies, and so on.