Knockin on Heavens Door was written by Bob Dylan for the soundtrack of the 1973 movie Pat Garrett & Billy the Kid. The song captures the desolation of a dying sheriff who feels unable to continue his role as a law enforcer due to his impending death.