To deprive someone of something means to not let them have it.
Because the child was bad, she was deprived of her dessert after dinner.
Example picture