This question is specifically for Total War: Medieval 2, but I would imagine it can apply to most, if not all, of the Total War games.
Since I lost my last playthrough to unbelievable squalor in all my cities (50%+ and going up), I have done some extensive research on what creates/prevents it.
I now understand that squalor is created by increased population. It appears that it is also created by a large army sitting in the city. I have deduced that higher taxes will cut down slightly on the population growth, but this really isn't a fix. The only guaranteed way to get rid of it is to move out, let the city rebel, and then exterminate the populace, which I would really rather not do. Other than that, it appears impossible to get squalor to go down. From my understanding, it is impossible to get rid of it entirely.
I have found nothing at all on whether or not any structures/buildings actually prevent or at least reduce squalor. I can't even find anything on which ones create it, though I would imagine it's everything that contributes to population growth. I also have found nothing on what calculates squalor, and how much it goes up each turn, and why.
So here's my question: Squalor: How can I know when it is coming, and is there anything I can do to stop, remove, or slow it?