<div><p>Pattern formation is one of the most fundamental yet puzzling phenomena in physics and biology. We propose that traveling front pinning into concave portions of the boundary of 3-dimensional domains can serve as a generic gradient-maintaining mechanism. Such a mechanism of domain polarization arises even for scalar bistable reaction-diffusion equations, and, depending on geometry, a number of stationary fronts may be formed leading to complex spatial patterns. The main advantage of the pinning mechanism, with respect to the Turing bifurcation, is that it allows for maintaining gradients in the specific regions of the domain. By linking the instant domain shape with the spatial pattern, the mechanism can be responsible for cellular polarization and differentiation.</p></div