Ethane can be produced on Mars by the Fischer-Tropsch reaction from CO and hydrogen. CO is produced from atmospheric CO2 and Hydrogen using the reverse water gas shift reaction. Hydrogen can be obtained through electrolysis of water.
Ethane can be used to produce Acetic acid, the main ingredient (4%) in vinegar besides water. Vinegar's formula is CH3COOH.