Reasons for leaving accommodation;Time of residence in Spain;Total Total;Total;28,552 Total;From 0 to 12 months;3,300 Total;From 13 to 35 months;2,401 Total;From 3 to 5 years;2,644 Total;More than 5 years;20,207 Separation from partner;Total;3,942 Separation from partner;From 0 to 12 months;71 Separation from partner;From 13 to 35 months;130 Separation from partner;From 3 to 5 years;121 Separation from partner;More than 5 years;3,619 They or their children suffered from violence;Total;2,705 They or their children suffered from violence;From 0 to 12 months;580 They or their children suffered from violence;From 13 to 35 months;335 They or their children suffered from violence;From 3 to 5 years;136 They or their children suffered from violence;More than 5 years;1,654 The building where they lived was in ruins;Total;697 The building where they lived was in ruins;From 0 to 12 months;22 The building where they lived was in ruins;From 13 to 35 months;43 The building where they lived was in ruins;From 3 to 5 years;41 The building where they lived was in ruins;More than 5 years;590 Eviction from the dwelling;Total;4,519 Eviction from the dwelling;From 0 to 12 months;165 Eviction from the dwelling;From 13 to 35 months;189 Eviction from the dwelling;From 3 to 5 years;236 Eviction from the dwelling;More than 5 years;3,930 The rental contract ended;Total;2,245 The rental contract ended;From 0 to 12 months;119 The rental contract ended;From 13 to 35 months;97 The rental contract ended;From 3 to 5 years;197 The rental contract ended;More than 5 years;1,832 Loss of their job;Total;7,522 Loss of their job;From 0 to 12 months;274 Loss of their job;From 13 to 35 months;297 Loss of their job;From 3 to 5 years;578 Loss of their job;More than 5 years;6,373 Hospitalisation;Total;3,117 Hospitalisation;From 0 to 12 months;113 Hospitalisation;From 13 to 35 months;113 Hospitalisation;From 3 to 5 years;204 Hospitalisation;More than 5 years;2,687 They were deprived of their freedom;Total;2,010 They were deprived of their freedom;From 0 to 12 months;217 They were deprived of their freedom;From 13 to 35 months;78 They were deprived of their freedom;From 3 to 5 years;84 They were deprived of their freedom;More than 5 years;1,630 Change in municipality;Total;2,697 Change in municipality;From 0 to 12 months;280 Change in municipality;From 13 to 35 months;444 Change in municipality;From 3 to 5 years;309 Change in municipality;More than 5 years;1,664 They could no longer pay for accommodation;Total;4,115 They could no longer pay for accommodation;From 0 to 12 months;251 They could no longer pay for accommodation;From 13 to 35 months;135 They could no longer pay for accommodation;From 3 to 5 years;296 They could no longer pay for accommodation;More than 5 years;3,433 Having to start from scratch after emigrating to another country;Total;8,061 Having to start from scratch after emigrating to another country;From 0 to 12 months;2,673 Having to start from scratch after emigrating to another country;From 13 to 35 months;1,829 Having to start from scratch after emigrating to another country;From 3 to 5 years;1,520 Having to start from scratch after emigrating to another country;More than 5 years;2,039 Addiction problems;Total;3,522 Addiction problems;From 0 to 12 months;17 Addiction problems;From 13 to 35 months;27 Addiction problems;From 3 to 5 years;107 Addiction problems;More than 5 years;3,371 Departure or abandonment from a juvenile centre;Total;771 Departure or abandonment from a juvenile centre;From 0 to 12 months;26 Departure or abandonment from a juvenile centre;From 13 to 35 months;55 Departure or abandonment from a juvenile centre;From 3 to 5 years;294 Departure or abandonment from a juvenile centre;More than 5 years;396 Other causes;Total;4,262 Other causes;From 0 to 12 months;490 Other causes;From 13 to 35 months;327 Other causes;From 3 to 5 years;450 Other causes;More than 5 years;2,994 Not given;Total;517 Not given;From 0 to 12 months;60 Not given;From 13 to 35 months;25 Not given;From 3 to 5 years;23 Not given;More than 5 years;409