This paper aims at explaining the dynamics of the Spanish labour market, focussing in particular on the high persistence of unemployment and the dynamics around the Beveridge curve. We develop a stochastic dynamic general equilibrium model in which we assume that the labour market may be characterised by coordination failures in the matching process between vacancies and the unemployed. The model is then calibrated and simulated for the Spanish economy. Two sources of disturbances are considered: a traditional technological shock that initiates movements along the Beveridge curve; and reallocation shocks that shift the Beveridge curve. Our results suggest that the model is capable of accounting for the main stylised facts characterising the Spanish labour market. We also analyse the movements around the Beveridge curve. Our results also indicate that reallocation shocks are the main source of shocks driving labour market dynamics.