Rafael Nadal is retiring from professional tennis at age 38 after winning 22 Grand Slam titles during an unprecedented era he shared with rivals Roger Federer and Novak Djokovic.