Non-mixing layers of water and hydrocarbons thousands of miles deep could explain the icy planets’ strange magnetic fields.