What is it?
It’s easiest to think of these two substances as chemical cousins. Both are by-products of the refining process used to create gasoline and other petroleum products. If you want to get technical: petroleum jelly contains mineral oil, among other substances. Mineral oil consists mainly of saturated hydrocarbons (aka paraffins) and aromatic hydrocarbons.