I'm so glad I own my own home now, because dealing with landlords and evictions and all that can be a nightmare. I had one landlord who stapled an eviction notice to my front door after I complained about a few repairs not being done correctly. I had been told that I could withhold part of my rent payment if I had to buy repair supplies with my own money. He saw it as non-payment of my rent, and used that as the official excuse for the eviction.
The only thing I could do to stop the eviction was to hire an attorney who specialized in landlord and tenant rights. He wrote a letter that explained exactly how the court would view the landlord's retaliatory actions and how much it would cost in legal fees to keep pursuing the questionable eviction. The landlord did back down, and I got to stay in that apartment for the rest of the time left on the lease.