Sylvite is separated from halite by dissolution or flotation and crystallized as KCl. Metallic K comes from reducing molten KCl with Na vapor at ~870 °C — K is more volatile, so it distills off (a Le Chatelier trick).