Is it the book Animal farm by George Orwell I read this book two years ago...I’ll try my best this might be different than what your looking for tho...
I remember the book being about a farm of animals who decided to rebel against their master because he treated them differently (badly) and hardly ever fed them.
The animals wanted to be treated equally so they all gathered in meetings in the barn to look over the situation!
I think I remember pigs being the animals in charge because they considered themselves the smartest.
However the book ends with the master long gone and the animals realizing the pigs tricked them. It says in the end that the pigs turned into humans as a way of saying they acted just like the master.