Abner Doubleday, a Union General during the Civil War, is generally credited with inventing the game in 1839, and therefore establishing the first set of rules. (There is substantial evidence that would debunk Doubleday's involvement in the evolution of the game1.) The rules have been revised, improved and clarified many, many times since then.
1 Wikipedia.org, "Abner Doubleday"
Hart's Rules was created in 1893.
Defying the Rules was created in 1000.
The Rules of Play was created in 2007.
Rules of Love was created in 2010.
There Are Rules was created on 2011-01-25.
Cambridge rules was created in 1848.
The Mob Rules was created in 1981.
Max Rules was created in 2005.
The Rules was created on 1995-02-14.
No Rules - film - was created in 2005.
The Rules of Survival was created in 2006.
Brooklyn Rules was created in 2007.