Trespassing at Night
In Canada, it is illegal to loiter or prowl at night near another person's home. The Criminal Code addresses it as the act of Trespassing at Night.
Jump to section
Plain-Language Summary
Trespassing at Night: The crime of trespassing is mainly dealt with at the provincial level across Canada, though Section 177 of the Criminal CodeA federal act codifying most criminal offences in Canada addresses the act of (loiteringLingering in a place without a clear purpose, sometimes in a way that obstructs others. or prowling) trespassing at night. Financial penalties are handed out by the provinces while the maximum penalty for violating the federal statute is two years in jail.
What is Trespassing in Canada?
Under s. 177 of the Criminal Code, it is a federal offence to loiter or prowl at nightThe period from 9 p.m. to 6 a.m. the next day. on another person's property, near a dwelling-house (a home or other residence) on that property, without lawful excuse. This is narrower than what many people mean by 'trespassingBeing on property without permission or refusing to leave when required..' It targets nighttime prowling close to a home, not simply walking onto someone's land.
Most Provinces Have Trespassing Legislation
Across most of the country, provincial statutes address the crime of trespassing. In Ontario, the Trespass to Property Act allows occupiers of private premises to determine who is allowed on their premises, according to information from the government. You can be prosecuted under this law if you walk onto someone’s land without permission, if you engage in an activity that is forbidden on the premises or if you refuse to leave when asked to do so by the property owner.
In Alberta, government information in (Protecting property owners) about the Trespass Statutes (Protecting Law-abiding Property Owners) Act notes that while the legislation is intended to protect landowners from trespassers, property owners need to remember that they can be held criminally responsible for their actions and they should call law enforcement to deal with trespassers.
In British Columbia, the Trespass Act makes it illegal to enter an area that is enclosed land, enter a premise where you are not welcome or engage in activity on someone’s land that is prohibited.
What is Needed to Convict
You may be found guilty of trespass at night without the Crown needing to prove that you were engaging in criminal activity. Additionally, “night” is defined as being from 9 p.m. to 6 a.m. the next morning, despite the significant seasonal variations in the period of darkness within many places in Canada. If you are found on someone’s property during these hours, you could be charged.
The Crown must also prove that you did not have the permission to be on that property and that you have no title or interest in the land.
Penalties for Trespassing
Under the Criminal Code, trespassing at night (s.177) is always a summary convictionUsed for lesser offences offence. The maximum penalty is two years less a day in jail and/or a fine of up to $5,000 (the default under s.787 of the Criminal Code, since s.177 sets no penalty of its own). The penalties described below come from provincial trespass laws, not the federal Criminal Code charge.
In Ontario, the court will determine the penalty for those convicted of trespassing “in favour of the person who suffered the damage.” The guilty party will also bear the costs of conducting the prosecution, the defendant’s costs plus any fine that may be imposed.
In Alberta, maximum fines up can reach $10,000 for a first offence and $25,000 for subsequent offences, as well as possible prison time of up to six months. In addition, corporations that help or direct trespassers can be fined up to $200,000.
In British Columbia, the charge of trespass is treated as a summary conviction, with a maximum penalty of six months imprisonment or a fine of up to $2,000.
What counts as 'night'
Night means the period between 9 p.m. and 6 a.m. (Criminal Code, s. 2.)
Provincial trespass laws
Daytime or ordinary trespass is often dealt with under provincial trespass legislation, not this Criminal Code offence.
What the Crown Must Prove
To get a conviction, the Crown must prove every part of the offence beyond a reasonable doubt.
Section
Loitering or prowling
The accused loitered (purposeless lingering/wandering) or prowled (moving about with a furtive or specific unlawful purpose) — either state of conduct satisfies this element.
At night
The conduct occurred at night. Night means the period between 9 p.m. and 6 a.m. (Criminal Code, s. 2.)
On the property of another person
The location was property belonging to someone other than the accused.
Near a dwelling-house situated on that property
The loitering/prowling took place near a dwelling-house located on that property — proximity to an actual residence is required, not merely presence anywhere on the property.
Without lawful excuse
The Crown must prove the accused had no lawful excuse for being there; this is an essential element of the offence itself (not a separate defence the accused must raise), so the absence of lawful excuse forms part of what the Crown must establish beyond a reasonable doubt.
A proof rule (a presumption) is a rule about evidence. It does not mean the person is automatically guilty. It means the court may treat one fact as evidence of another fact unless there is evidence pointing the other way.
Possible Penalties
These are maximum sentences. Actual sentences depend on the facts, criminal history, and any mitigating or aggravating circumstances.
Loitering or prowling at night on another person's property near a dwelling-house, without lawful excuse — s. 177
SummarySection 177 states no maximum of its own. On summary conviction, the general s. 787(1) default applies: a fine of up to $5,000, imprisonment for up to two years less a day, or both. No mandatory minimum applies.
What these words mean
- Indictable
- The more serious way to prosecute an offence. It can carry higher maximum penalties.
- Summary conviction
- The less serious, usually faster way to prosecute an offence, with lower maximum penalties.
- Hybrid
- An offence the Crown can prosecute either way — by indictment or by summary conviction.
- Summary only
- Summary-only offences are prosecuted by summary conviction. The Criminal Code sets the maximum penalty in the specific offence section.
- Crown election
- The Crown prosecutor’s choice of which way to proceed on a hybrid offence.
Possible Defences and Legal Issues
Trespassing at Night — s.177
Section 177 says the offence applies only when a person loiters or prowls at night on the property of another person, near a dwelling-house situated on that property, "without lawful excuse". If there is evidence capable of raising a lawful excuse, the Crown must prove beyond a reasonable doubt that the person loitered or prowled at night on the property without lawful excuse. What counts as a lawful excuse depends on the facts and the law.
A defence may also focus on whether the Crown can prove the other parts of the offence — for example, whether the conduct was really loitering or prowling, whether it happened at night (defined in the Criminal Code as between 9 p.m. and 6 a.m.), and whether the property was near a dwelling-house. This is general legal information, not legal advice.
Common Legal Terms
Terms marked with a dotted underline in the article above are defined here and available in the full site glossary.
- Night Glossary entry →
- For Criminal Code purposes, night generally means the period from 9 p.m. to 6 a.m. the next day. This definition can matter for some offences where the time of day affects the charge or legal analysis.
- Summary conviction Glossary entry →
Summary convictions are used for lesser offences with penalties, fines and short jail time. They reflect the majority of offences as defined in the Code.
- Trespassing Glossary entry →
- Trespassing generally means being on someone else's property without permission or refusing to leave when required. Many trespass matters are provincial or civil, but some conduct may also connect to Criminal Code offences depending on the facts.
Legal sources
The official statute section(s) this page is based on. Always confirm against the official source before relying on it.
-
Criminal Code s. 177 Trespassing at nightSource current to: 2026-05-26View official source ↗
-
Criminal Code s. 2 Definition of 'night'Source current to: 2026-05-26View official source ↗
-
Criminal Code s. 787 General summary-conviction penalty (default for s. 177)Source current to: 2026-05-26View official source ↗
Government References
- Canadian Charter of Rights and Freedomshttps://www.justice.gc.ca/eng/csj-sjc/rfc-dlc/ccrf-ccdl/
- Criminal Codehttps://laws-lois.justice.gc.ca/eng/acts/c-46/
- Trespass Act (British Columbia)https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/18003
- Trespass Statutes (Protecting Law-abiding Property Owners) Acthttps://www.assembly.ab.ca/assembly-business/bills/bill?billinfoid=11821&from=bills
- Trespass to Property Act (Ontario)https://www.ontario.ca/laws/statute/90t21
Find a Criminal Defence Lawyer Near You
If you or someone you know is facing criminal charges, a criminal defence lawyer can review the situation and explain the options.
Search the Lawyer DirectoryCriminal Code Help does not endorse or recommend specific lawyers.
Report an inaccuracy or concern about this page
Report an inaccuracy or concern about this page
Report: Trespassing at Night
Use this form to report a possible error, outdated information, unclear wording, broken link, or other concern about this page.
General legal information only. Not legal advice. We do our best to keep this page accurate and up to date, but criminal law can change and every case depends on its facts. Check the review date and consult the Criminal Code or a criminal defence lawyer before relying on this information.
About this page
Criminal Code Help explains selected Criminal Code offences and related legal concepts in plain language. The goal is to help readers understand the general meaning of the law without having to read the full statutory text.
This page is a simplified summary. It does not include every exception, definition, court interpretation, evidentiary issue, Charter issue, sentencing factor, or procedural rule that may apply in a real case.
Legal information, not legal advice
This page is general legal information only. It is not legal advice and should not be relied on as advice about any specific charge, investigation, court file, or personal situation.
Possible defences and legal issues depend on the facts, the evidence, the exact charge, current Canadian law, and the province or territory where the case is being handled. If you are facing a criminal charge or researching a real legal problem, speak with a criminal defence lawyer in your province or territory.