This dissertation analyzes how relaxing the assumption of rational expectations modifies the output of macroeconomic models. In particularly we show how imperfect information among the financial agents modifies their risk-taking decisions, the effect of monetary policy on banks' lending or equilibrium selection. In the first paper we incorporate a model of the interbank market into a standard DSGE model, with the interbank market rate and the volume of lending depending on market confidence and the perception of counterparty risk. As a result, a credit crunch occurs if the perception of counterparty risk increases. Changes in market confidence then can generate credit crunches and contribute to the depth of recessions. We conduct an exercis...