This dissertation features three empirical studies on the interaction of economic activities and the environment. Chapter 1 estimates the costs of environment regulations by analyzing administrative records of industrial firms in China. Chapter 2 investigates the relationship between environmental conditions and birth decisions and uses online purchases to infer fertility trends. The last chapter examines household panel scanner data to evaluate the impact of changing fuel prices on consumers' shopping patterns. These three papers take advantage of different data sources to answer important questions in environmental economics, on both the producer and the consumer side.The first chapter measures the impacts of ad hoc environmental regulat...