Raed Jaser and Chiheb Esseghaier both face multiple charges in the alleged Via Rail plot. Not-guilty pleas have been entered for both of them.
On the first day of the trial, Crown lawyer Croft Michaelson said the pair made up a terrorist group operating in Canada in 2012.
"Mr. Esseghaier and Mr. Jaser, motivated by Islamic extremism, agreed that they would murder persons to instil fear in the community," Michaelson said in his opening remarks.
"They did this so that Canadians and Americans would remove their troops from Muslim lands."
Esseghaier, a Tunisian national who was doing doctoral research on nanosensors in Quebec, travelled to Iran in early 2012 and met with people who were, in his words, "carrying out Jihad for the sake of Allah," Michaelson said.
"Mr. Esseghaier returned to Canada intent on establishing a terrorist cell to facilitate and carry out terrorist acts in Canada," he said.
Jaser, a permanent resident of Palestinian descent, got involved with Esseghaier and wanted to "conduct multiple missions so people in Canada would realize they would not be safe until they left the lands overseas," Michaelson said.
An undercover FBI officer, however, was able to gain the pair's trust, which was how conversations about the men's plans were recorded, forming crucial evidence in the case.
The undercover officer, posing as a wealthy businessman involved in real estate, first met Esseghaier in June 2012 on a flight to California.
That officer testified Monday afternoon that the relationship he built with Esseghaier led to the man calling him one of his brothers.
A conversation which took place at Esseghaier's apartment was played for the trial, in which he spoke about his time in Iran and "a Palestinian friend" in Toronto — a reference to Jaser — who was "in the Jihad truly," court heard.
"Him and I, we have projects together," Esseghaier said in Arabic in the intercepted conversation.
One project was the alleged attack on a train between New York and Toronto.
"Mr. Esseghaier explained that their plan was to make a five- to six-metre hole in a railway bridge, which would cause a 'big accident,'" Michaelson said. "He said it was to be executed in December."
Part of the plan was also a video, which would be posted online to deliver a message after the attack that "it's just the beginning, if you don't get out of our land we will do more," Michaelson said.
The undercover officer was introduced to Jaser by Esseghaier and got involved in their plans, Michaelson said, at which point more conversations were intercepted.
"Mr. Jaser stated that he could care less who dies. He said that everyone is a target," Michaelson said.
Jaser also told the undercover officer of a "long-term" plan to use a sniper to target leaders in Canada, he added.
Jaser and Esseghaier took trips to at least two railway bridges as they plotted their attack and determined the ideal location would be a bridge on the eastern edge of Toronto.
At one point, however, Jaser became concerned about the impact their attack would have, court heard.
"Jaser said that it seemed like too much work for a small result. He indicated that the train plot would result in the killing of a few 'sheep,'" Michaelson said. "He said, 'we don't want the sheep. We want the wolf.'"
In late September 2012, during a scouting trip to a bridge, the pair's plot started to unravel when they were approached by uniformed police officers who questioned them and took down their identification information, court heard.
It was at that point that Jaser explained he didn't want to get caught because he wanted to "continuously fight."
Esseghaier, who was angry at Jaser for abandoning the train plan, remained intent on carrying out the plot, court heard, and sought to reach out to his contacts overseas while trying to recruit others in Canada to join him.
Jaser and Esseghaier were arrested in April 2013.