The denatured state dictates the topology of two proteins with almost identical sequence but different native structure and function.