Lleyton Hewitt has played the last singles match of his tennis career, losing to David Ferrer in the second round of the Australian Open.

Former world number one Hewitt, who won two Grand Slam titles, was beaten 6-2 6-4 6-4 by the Spaniard.

"I left nothing in the locker room. My whole career I've given 100%," said the 34-year-old Australian.

"I love coming out here and competing. I've been so fortunate to have that opportunity 20 years in a row."

Hewitt, who won 30 singles tour titles, was victorious at the US Open in 2001 and Wimbledon in 2002 and also helped his home country win the Davis Cup twice - in 1999 and 2003.