After re-signing Trent Williams, Jason Verrett, Kyle Juszczyk, Emmanuel Moseley and Jaquiski Tartt, the 49ers only had one more priority free agent to retain.
They did that Wednesday when they agreed to a one-year contract with cornerback K'Waun Williams, NFL Media's Ian Rapoport reported.
Williams, one of the best nicke backs in the game, recently visited with the Kansas City Chiefs but chose to return to the Bay for one more season with the 49ers.
Securing Williams gives the 49ers a solid secondary with Verrett, Moseley, Williams and Jimmie Ward locked into their roles. There will be a competition for the second starting safety position.
The 49ers now have checked every box on the free-agency to-do list and will head toward the NFL draft with no glaring needs on their roster and the freedom and flexibility to go any route they choose with the No. 12 pick.