This study aimed to investigate the ways in which the thermal behavior, composition, and volatile compound contents of roasted coffee beans depend on variety and roasting intensity. The thermal analysis revealed various transformations in coffee composition, namely, drying, water loss, and decomposition of polysaccharides, lipids, amino acids, and proteins. The results showed that volatile compounds are released differently in coffee depending on coffee type and degree of roasting. The most abundant volatile compounds present in the samples were 2-butanone, furan, 2-methylfuran, methyl formate, 2.3-pentanedione, methylpyrazine, acetic acid, furfural, 5-methyl furfural, and 2-furanmethanol. The total polyphenol contents ranged between 13.3 and 18.9 g gallic acid/kg, being slightly higher in Robusta than in Arabica varieties and in more intensely roasted beans compared to medium-roasted beans. The Robusta variety has higher mineral contents than Arabica, and the contents of most minerals (K, Ca, Mg, Fe, Cu, P, N, and S) increased with roasting intensity. Discrimination between coffee varieties and roasting intensities is possible based on mineral and polyphenol contents.