By the end of the book, all of the Seven Commandments are broken by the pigs for their own personal gain. Squealer constantly changed the Commandments to the pigs' benefit, taking advantage of the other animals.
No animal shall sleep in a bed with sheets
No animal shall drink alcohol to excess
No animal shall kill any other animal without cause
In the end, the pigs learn to stand on two legs and regard their four-legged friends as enemies. They start to wear Mr. Jones' clothes ...
Written originally by Snowball, the Seven Commandments were the "unalterable" principles of Animalism. Since not all of the animals can remember them (or read them), they are boiled down into one statement: "Four legs good, two legs bad!", which the sheep constantly repeat, distracting the crowd from the lies of the pigs.
They are later changed by Squealer, probably underneath the order of Napoleon.
The seven commandments are designed to unite the animals together in a common cause against the humans and to prevent animals from ...