Marks signed a one-year contract with the 49ers on Wednesday, Max Meyer of NFL Network reports.
Marks, who had 8.5 sacks with the Jaguars as recently as 2014, isn't guaranteed a roster spot and will need to compete for a role at defensive tackle behind starters DeForest Buckner and Earl Mitchell.