We build a general equilibrium model in which both illegal immigration and the size of the informal sector are endogenously determined. In this framework, we show that indirect policy measures such as tax reduction and detection of informal activities can be used as substitutes for border...