Spaniard Javier Fernandez, a two-time men's figure skating world champion, will retire after the European championships in January, Spanish media reported Wednesday.

The 27-year-old Fernandez took bronze at the Pyeongchang Olympics earlier this year, when Japanese skater Yuzuru Hanyu won his second successive Olympic gold medal.

Fernandez, who also won world titles in 2015 and 2016, practiced together with Hanyu under the same coach Brian Orser in Toronto until last season. He has not participated in this season's Grand Prix series.

(Javier Fernandez, center, Yuzuru Hanyu, left, and Boyang Jin of China at the 2016 ISU World Figure Skating Championships in Boston.)[Getty/Kyodo]

(Fernandez and Hanyu at the 2015 ISU World Figure Skating Championships in Shanghai.)[ISU/Getty/Kyodo]

(Hanyu and Fernandez at the Sochi Olympics)