In this paper, we investigate the effect of real estate prices on productive investment. We build a simple theoretical framework of firms investment with credit rationing and real estate collateral. We show that real estate prices affect firms borrowing capacities through two channels. An increase in real estate prices raises the value of the firms pledgeable assets and mitigates the agency problem characterizing the creditor-entrepreneur relationship. It simultaneously cuts the expected profit due to the increase in the cost of inputs. While the literature only focuses on the first channel, the identification of the second channel allows for heterogeneous effects of real estate prices on investment across firms. We test our theoretical predictions using a large French database. We do find heterogeneous effects of real estate prices on productive investment depending on the position of the firms in the sectoral distributions of real estate holdings. Our preferred estimates indicate that a 10% increase in real estate prices causes a 1% decrease in the investment rate of firms in the lowest decile of the distribution but a 6% increase in the investment rate of firms belonging to the highest decile.