OTTAWA -- The Supreme Court of Canada on Wednesday upheld the constitutionality of the security certificate the federal government is using in its effort to deport Algerian refugee Mohamed Harkat. Here is a timeline of the case.

1995: Harkat enters Canada carrying a fake Saudi Arabian passport.

1997: He is granted refugee status.

2001: He marries Sophie Lamarche of Ottawa.

2002: He is detained under a national security certificate which declares him a threat to Canada. It alleges he was an al Qaeda sleeper agent.

2006: He is released on strict bail conditions.

2007: The Supreme Court of Canada strikes down the security certificate regime.

2008: After the law is revised, a new security certificate is issued against Harkat.

2010: After lengthy hearings, the Federal Court of Canada upholds the security certificate and the regime.

2012: The Federal Court of Appeal partly overturns the Federal Court ruling and sends the certificate back for further consideration.

2012: The Supreme Court agrees to hear the case.

2014: The Supreme Court upholds the security certificate and says the system is consistent with the Charter of Rights and Freedoms.