You have to let your landlord know if you want to move out of your rented home. The law says you do this in writing a certain amount of time before the date you move out. This written notice is called a "notice to quit".
Landlords should also give tenants written notice to quit if they want a tenant to move out.