Lay your life on the line
Meaning: put oneself in a dangerous situation, put oneself in harm's way (to achieve something), especially at the risk of losing one's life. (Sometimes used hyperbolically.)
Example: He laid his life on the line to fulfill this task, but nobody appreciated his efforts.
Example: He laid his life on the line to fulfill this task, but nobody appreciated his efforts.