When was the first baseball league created?

The first baseball league was created in 1857.

In 1857, the Knickerbockers and fifteen other teams that were playing by the Knickerbocker rules organized into the National Association of Base Ball Players. Doc Adams was the president.