Organic chemistry is the branch of chemistry that studies the structure, properties, composition, reactions, and synthesis of carbon-containing compounds. This includes not only hydrocarbons but also compounds with any number of other elements, including hydrogen, nitrogen, oxygen, halogens, phosphorus, silicon, and sulfur.