You only have to allow your landlord to enter the unit to:
1) Inspect the unit for habitability
2) repair or provide necesary repairs
3) show the apartment to perspective buyers
4) Respond to an emergency.

Unless there is an emergency, the landlord must provide you with 24 hour notice before entering the unit, and, unless you make other arrangements, they must only visit during normal business hours. If you feel like your landlord is coming into your home in bad faith or to invade your privacy and not because of one of the reasons listed, talk to a lawyer as soon as possible. 

If you are refusing to let the landlord into the apartment during business hours for valid inspections, repairs, or other legally recognized purposes even after a 24 hour notice, then this can be a valid reason for a legal eviction. If you received a 3-day notice get legal help or join us at a Tenants Rights Workshop to connect to other tenants fighting eviction.



However, If you refused to allow a landlord to enter when they did not give you a 24 hour notice or they attempted to visit outside of normal business hours (9 am-6pm), then then this is NOT a valid reason for eviction and you will need to write a letter to your landlord stating that the notice is not valid. Send your landlord the signed and dated letter via certified mail and keep a copy.