We show that the emergence of new economic opportunities that draw women away from their traditional domestic roles has significantly influenced the adoption of religious veiling. We measure the prevalence of veiling among young women across Indonesia’s districts for more than two decades by handcoding around a quarter million photographs attached to Indonesia’s public high school registers. To establish causality, we exploit exogenous variation generated by international demand for Indonesia’s products, interacted with the gender and sectoral composition of local industries. Districts exposed to stronger positive economic shocks—and thus greater economic opportunities for women—exhibit higher rates of veiling adoption. Our findings suggest that veiling facilitates young women’s participation in formal labor markets while safeguarding their personal and social image in society.