go to the Housing Department in your city, and file a complaint for tenant discrimination against the landlord. If you live in a large city like Los Angeles they will have a Housing Department, usually under Building & Safety Department or maybe Rent Control department. Some cities have free tenant advice phone numbers for you to call. If the house is an illegal rental house the landlords usually try to take all sorts of liberties with tenants because it's under the table.
Also if you don't have a lease or some kind of written agreement with the landlord, they CAN tell you to leave with written notice. If you pay by the month, they have to give 30 days notice. With weekly rent payments, they can give you only 10 days notice to move.
Sometimes it is better to just move away from a discriminating landlord (maybe racist?) why would you want to be around someone who thinks like this. Usually means more problems for you in the future.