When was association football invented?

The English Football Association created the first widely accepted official rules of the game in 1863, dubbing the game association football. These rules were known as the "Laws of the Game."