There is a growing interest among macroeconomists in incorporating explicit heterogeneity into macroeconomic models, allowing to bring in micro data to discipline them. In this way, we can understand how shocks or policies impact differently these heterogeneous agents and their macroeconomic implications, which sometimes might differ from those obtained using a representative agent model. My dissertation consists of two main chapters that attempt to understand the impact of changes in the economic environment, with a special focus on taxes, on heterogeneous firms’ investment and growth decision, the firm size distribution of firms, and ultimately their impact on macroeconomic aggregates. In the first chapter, ‘Taxation and the Life Cycle o...