Meaning
To accept blame or punishment for something.
Literal Meaning
To take the punishment.
Example
“He took the rap for his friend's mistake to protect him.”