The San Francisco 49ers have agreed to sign Torrey Smith to a five-year, $40 million deal.

Smith will receive $22 million in guaranteed money.

Smith has been one of the NFL's best deep threats at wide receiver and will team with Colin Kaepernick.