We build a model of the aggregate housing and rental markets in which houseprices and rents are determined endogenously. Households can choose their housingtenure status (renters, homeowners, or landlords) and the size of their homes dependingon their age, income and wealth. We use our model to study the impact of changesin credit conditions on house prices, rents and household welfare. We analyse theintroduction of policies that limited loan-to-value (LTV) and loan-to-income (LTI) ratiosof newly originated mortgages in Ireland in 2015 and find that, consistent with empiricalevidence, they mitigate house price growth but increase rents. Homeownership ratesdrop, and young and middle-income households are negatively affected by the reform.An unexpected permanent rise in real interest rates has similar effects – by makingmortgages more expensive and alternative investments more attractive for landlords, itincreases rents relative to house prices.