There are a number of different ways in which coffee’s aroma compounds are created, but they’re all commonly produced as a consequence of the roasting process. The Maillard reaction, the complexities of which were discussed on the site recently, is a big contributor here, the reaction between proteins and sugars in the coffee beans producing a range of products. In addition to this, degradation and decomposition of other compounds in the coffee beans can also produce aroma compounds.