Epistasis facilitates the evolution of new functions by expanding the network of functional sequences and shortening evolutionary paths.