Floyd Mayweather Jr. retired with an undefeated record of 50–0 .
He competed from 1996 to 2017 , held 15 world titles in five weight classes and the lineal championship in four different weight classes ( twice at welterweight ) , and retired with an undefeated record .