Williams, who was involved in the Bloodgate episode that rocked rugby almost four years ago, has pledged his future to Quins until at least 2015.
The Brighton-born player has scored more than 50 tries for Quins and is an England sevens international.
"Tom's form over the last 12 months has been outstanding, and we are all really looking forward to him continuing that over the coming years," Quins rugby director Conor O'Shea said.
Williams added: "I am delighted to be staying at Harlequins for a further two years.
"The opportunity to contribute to a club playing such an exciting brand of rugby with a group of ambitious and talented players made the decision to stay an easy one."
Williams left the field with what turned out to be a fake blood injury during Quins' Heineken Cup quarter-final clash against Leinster at the Twickenham Stoop in April 2009.
Quins' aim had been to get goalkicker Nick Evans, who had earlier gone off injured, back on to the pitch in a game that Leinster eventually won 6-5.
And the fall-out was widespread, with then Quins rugby director Dean Richards being hit with a three-year worldwide coaching ban, Williams receiving a 12-month suspension that was reduced to four months on appeal and Quins being fined £260,000.
Gilbert has released a new line of rugby cleats. The Gilbert Virtuo 8S is part of the exciting new product. Check it out.
The entire All Blacks apparel line has been updated for 2013/14. Check out the New Zealand All Blacks polo.
The Nike Tiempo is a solid rugby cleat and one of few styles still made from full-grain natural leather.
The Gilbert Blitz 8S rugby cleat is a great cleat at a great price of $69.99. Get a new pair of cleats today.
A cool looking all black rugby cleat with the high performance adidas is known for. Get in the Gear!
Wear the crest of the British and Irish Lions on your t-shirt. A great look for the summer.
$29.99
The All Blacks Performance t-shirt is black with hints of blue from the training jersey. Very Cool.
The New Zealand All Blacks training jersey for 2013/14. Get in the Gear!
The USA Rugby Pro Alternate rugby jersey is perfect for any fan of the Eagles. Get yours to wear during the summer Test matches.
The NEW All Blacks 2013/14 jersey has arrived at World Rugby Shop. Dare to wear the colors of the All Blacks.