Heterocyclic compounds contain rings with more than one element, such as carbon and nitrogen or oxygen. They are very common and diverse organic compounds, as any carbocyclic compound can be made into a heterocyclic analog by replacing ring carbon atoms with other elements like nitrogen, oxygen, or sulfur. Heterocyclic compounds constitute the largest family of organic compounds due to their numerous permutations and combinations.