In this thesis, I study the relationship between political institutions and the provision of public goods. The chapter titled “The Role of Parties in the Distribution of Public Funds” studies the role of political parties in explaining inequalities in access to public funds for pork-barrel by federal legislators in Brazil. I find that differences in individual heterogeneity are the main drivers of the observed inequality, which, in turn, is limited by negative sorting of low influence politicians into political parties with higher collective bargaining premiums. In the chapter titled “Gender Gaps in Parliament: Access to Public Funds by Legislators in Brazil”, I show that this pattern is particularly important to explain the outcomes of fem...