What were pitbulls bred for?

At first they were bred to fight bulls in late 1800's. After a while people started breeding them for entertainment to fight other Pits, (disgustingly).Now it's for a multitude of reasons..