Rugby originated in 1823 when William Webb Ellis picked up a football and ran with it. The first set of written rules was established in 1845, leading to the formation of rugby union.