One of those friends, 20-year-old Azamat Tazhayakov, is the first person to go on trial in connection with the April 15, 2013 double bombing, accused of obstructing and conspiring to obstruct justice.
Three people were killed and 264 injured when two pressure-cooker bombs exploded at the race's finish line, in an attack allegedly carried out by Chechen brothers Dzhokhar and Tamerlan Tsarnaev.
Dzhokhar Tsarnaev is due to stand trial in November -- he is accused of 30 federal charges and could face the death penalty if convicted. Police shot dead his older brother Tamerlan in the days after the attacks.
The defendant is accused of removing from Tsarnaev's dorm room a laptop, which was tossed in a dumpster and recovered after a two-day FBI landfill search, and a backpack containing gunpowder residue.
Also Read
The men were students at the University of Massachusetts, Dartmouth and formed a bond as Russian speakers.
"The critical thing is what he knew and when he knew it," assistant US attorney Stephanie Siegmann said in her opening arguments in federal court in Boston.
Tsarnaev "shared his views that it was good to die as a martyr and with a smile on your face and you would go straight to heaven," she told the court.
"And he told you in that conversation that he could build a bomb and that it needed gun powder," she added, addressing the defendant.
On April 18, 2013, Tazhayakov went to Tsarnaev's dorm room to remove incriminating evidence just hours after the Federal Bureau of Investigation released images of the suspects to the public, she said.
"If you want to go to my room and take what's there," read Siegmann from one message.
"The defendant chose to go with his roommate to the dorm room where they found the backpack, the fireworks and some gunpowder residue, and the defendant chose to remove them and brought those things back to his apartment," Siegmann added.