In Quebec, a tenant (you) must provide the landlord with a written notice of non-renewal or cancellation.  If the duration of the lease is less than 12 months or undetermined, you must give at least one month and no more than 2 months notice prior to the end of the term.  If the lease is 12 months or longer you must give a minimum of 3 months and a maximum of 6 months notice before the end of the lease.  If you fail to provide written notice of non-renewal or cancellation within the appropriate time frame the lease will automatically be renewed.

TIP: If your lease is from July 1 to June 30 and you want to cancel it, you must give notice to the landlord by March 31.