The patent
U.S. Patent 748,626 was granted to Lizzie J. Magie on 5 January 1904. The patent is titled Game-board, and its description calls the invention The Landlords Game. Magie had applied in 1903.
The description presents a board game of chance. Players try to collect as much wealth as they can, and after an agreed number of trips around the board the player with the most wealth wins.
What it was for
According to Wikipedia's account, Magie designed the game to show the harm of land monopolism and to promote a land value tax, an idea drawn from the writer Henry George. The game was meant to teach as well as entertain.
Who got the credit
About three decades after the patent, Parker Brothers published a modified version as Monopoly, and Charles Darrow was credited as its inventor. Magie reported making only about $500 from her invention.
Her role became much better known after Ralph Anspach later found her patents.

