Why do sulphur and iron form a compound on heating?

Fe has two electrons to give away; S needs two electrons to complete its outer shell. Bingo. FeS