Hornets sign former Tar Heel forward Marvin Williams

After coming up short in the chase for Utah guard Gordon Hayward, the Charlotte Hornets have settled on another Jazz product.

Forward Marvin Williams has signed a two-year, $14 million deal with the Hornets, according to sources. All of Williams’ contract is guaranteed with no options — team or player.

The 6-foot-9 Williams is a former No. 2 overall pick by the Atlanta Hawks in the NBA Draft after leaving the University of North Carolina in 2005. Williams helped lead the Tar Heels to a National Championship as a freshman.

Williams spent the first seven seasons of his career with the Hawks — five of them in the playoffs — before being sent to Utah in a trade for guard Devin Harris in July 2012.

In his NBA career, Williams has averaged 10.8 points and 5.1 rebounds per game, shooting 44.7 percent from the field, 33.5 percent from 3-point territory and 80.4 percent from the free throw line.

The Hornets had heavily pursued Hayward, signing him to a four-year, $63 million offer sheet. However, Utah matched that offer on Saturday morning, ending Charlotte’s bid to acquire the former Butler standout.

Williams has the capability of playing both small forward and power forward, and will more than likely try to help replace Josh McRoberts, who signed with the Miami Heat in free agency.

It was a busy Saturday for the Hornets, who also finalized a trade that sent center Brendan Haywood and the draft rights to Dwight Powell (No. 45 overall) to Cleveland for guard Scotty Hopson.