During the American Civil War European nations tried to remain neutral. Many nations did not want to get into war with the US, Great Britain and France chose to become involved by supporting the South. They had an economic interest because the vast majority of the world’s cotton was produced there.
When the Emancipation Proclamation came and the Civil War became a matter of slavery and ethics, this happened after Great Britain had forbidden slavery. Also, the South lost the Battle of Gettysburg and the sensation of failure of Southern states became bigger.
This forced those countries to retreat their support.