Friction is caused when two surfaces are quickly being rubbed against each other. In order for this to stop, you would need to separate these objects from one another, and make them parallel. This solution works because the two surfaces wouldn’t have any contact with the other, causing no friction.