Hydrocarbons are organic compounds consisting primarily of carbon and hydrogen atoms. Some hydrocarbons are gases because the molecules are small structure and there interaction less among each other, while some hydrocarbons are liquids because the molecules are big structures and there interaction more with each other and they tend to settle in liquid state.