To prevent toffee from separating or crystallizing: Ensure you're using fresh butter and brown sugar. Stir the mixture constantly while bringing it to a boil. Let it boil undisturbed once it starts bubbling, and avoid stirring during the boiling stage. If it separates, you can try whisking it vigorously to bring it back together, but it’s best to start over if it doesn’t recombine smoothly.