What did the people bury with the pharaoh?
it is simple........ the belongings for the afterlife
When a Pharaoh died, the Egyptian's placed food, objects, shabtis, etc.into the tomb to serve the Pharaoh in the afterlife. The Pharaoh's queen also received similar treatment. They believed that when they passed over into their next life, they would need all these things including their riches, beds and etc.
Basically When They're Dead They'd Bury Them With All Their Treasure In A Pyramid And Set Booby Traps So No Grave Robbers Could Steal It And They'd Bury Some Other Like Personal Belongings With Them Such As Pets And Stuff Like That. And Also The People Who Built And Designed The Grave Or Tomb Would Be Killed So That They Couldnt Stael Anything Either