Paul wrote 2 Timothy during his second imprisonment while awaiting martyrdom, knowing his time was at an end.
Watch the Teaching: Why Did God Choose Paul to Reach the Gentiles?