Complex sentence: The devil, fulfilling his obligation to Jack, could not take his soul; to warn others he gave Jack an ember, marking him as a denizen of hell.
Split into simpler sentences: The devil, fulfilling his obligation to Jack, could not take his soul. To warn others, he gave Jack an ember, marking him a denizen of hell.