This paper examines the effect of a short-term change in preference for male offspring on couples' childbearing and child-avoidance behaviors. We exploit a natural experiment in Japan in which girls born in a specific astrological year are regarded as less desirable. We relate this superstition to an economic model of child avoidance. We measure the relative importance of sex-selective and sex-blind child avoidance responses nationwide and across geographic areas and the degree of substitutability of children across birth years in Japan in 1846, 1906, and 1966, and we examine how these responses interacted with the economic and social development of Japan over this period.