When you heat ice, it melts.

Literal

Ice [object-を] warming [conditional-と] melts.

温めるととける — the conditional と marks an automatic, natural consequence. とける (溶ける) means 'to melt.' A textbook example of と conditional for scientific facts.