Just south of Madrid there is a place called Seseña that’s a bit of a ghost town:
I really wouldn’t want to live there though.
BTW Be careful how you define “bargain”. I’ve heard stories of councils practically giving away free plots of land in the more “rural” areas, provided you live there for at least 6 months of the year! There is a reason why few people are taking up these offers!