It is a well-known fact that the housing market, with its associated mortgage securities, plays a crucial role in modern economies. The recent crisis of 2007, triggered by the U.S. real estate bubble, confirms this key role and suggests the importance of regulating mortgage lending. This paper investigates these issues by designing a housing market with a linked mortgage lending instrument in the Eurace agent-based model. Our results show that the presence of a housing market in the model has relevant macroeconomic implications, driven mainly by the additional amount of endogenous money injected into the economy by new mortgages. This additional money generally helps to support and stabilize aggregated demand, thus improving the main econom...