Water and ammonia are major constituents of icy planet interiors, however their phase behaviour under extreme conditions remain relatively unknown. Here, the authors show that ammonia monohydrate transforms under pressure into an alloy composed of molecules as well as ions, owing to a topological frustration.