 On August 16, 2016, the 49ers placed Lewis on the injury reserve.On August 14, 2017, Lewis signed with the Baltimore Ravens.On September 1, 2017, he was released by the Ravens during final roster cuts.