Disorderly Conduct Criminal Code, s. 177 Summary

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.

Last reviewed: July 2026 Section: Criminal Code, s. 177 Classification: Summary
Jump to section

Plain-Language Summary

Trespassing at Night: What Counts and the Penalties

Trespassing at night means loitering or prowling on someone else's property between 9 p.m. and 6 a.m., near a house, with no lawful excuse. The Crown does not need to prove you planned another crime, just that you had no reason to be there. The longest sentence is 2 years less a day, a fine up to $5,000, or both.

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

1

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.

2

At night

The conduct occurred at night. Night means the period between 9 p.m. and 6 a.m. (Criminal Code, s. 2.)

3

On the property of another person

The location was property belonging to someone other than the accused.

4

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.

5

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

Summary
Maximum (via s. 787(1) default)
A $5,000 fine, two years less a day of imprisonment, or both
How it proceeds
Summary conviction only

Section 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.

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.

Government References

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 Directory

Criminal 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.

This form is for page concerns only. Do not send confidential case details or legal questions.

Fields marked with * are required.

What are you reporting?
Please include the sentence, section, or issue you are concerned about.
Optional. You may include a link to legislation, a court decision, or another reliable source.
Optional.
Optional. Include your email only if you are willing to be contacted about this report.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.