Restoration of status is an application to Immigration, Refugees and Citizenship Canada (IRCC) to have your temporary resident status restored after it has expired or after you have not followed its conditions. It is used by people who are still in Canada and want to stay lawfully, rather than leave.
Restoration can apply to people who held different types of temporary status:

The time you have to apply for restoration is limited, so the first step is to confirm exactly when your status ended.

The reason your status was lost matters, and so does what you did afterward. Getting a clear picture early helps shape your application.

You complete the application for the status you need, along with a clear, honest explanation and supporting documents.

IRCC reviews your application and may ask for more information. What you can do while you wait depends on your situation.

If approved, your status is restored and you can continue your stay in Canada under the conditions of your permit.
Staying in Canada without valid status can have serious consequences and complicate future applications. Restoration is one of the few options for fixing this from inside Canada, and it comes with a limited window.
A rushed or unclear application can be refused, so preparing carefully and quickly gives you the best chance of putting things right.
YOUR NEXT STEP STARTS HERE.