How do sound cancelling headphones work?

Sound cancelling headphones work in two ways. Firstly, they are created from materials that do not absorb sound easily. Secondly, quality speakers are used in order to deliver sound in a directional manner.