A judge in the industrial city of Birmingham said Kasim Khuram’s crime “offended all human sensibility”.
The man was found to have been both drunk and high on artificial cannabis and PCP at the time.
The 23-year-old pleaded guilty during at an earlier hearing.
The judge said Khuram disturbed the three bodies and nine coffins during the break-in.
“You set about disturbing all nine of these bodies — exactly what you did, and why, only you know,” judge Melbourne Inman said during the sentencing.
Defence lawyer Joseph Keating said Khuram was “deeply sorry” for what he had done and that his actions were “out of character”.