Life is very likely to be carbon based (what other element makes 4 bonds, as is necessary for 3D structures?). Where life is carbon-based, decaying life in the absence of oxygen produces hydrocarbons.
There is silicon. Some sci-fi authors have postulated silicon-based life in their stories. (It’s been too long, I don’t remember which.) As with most science fiction, how plausible that is, is a different matter altogether.