A confederation is not the same as a federation , but they have a similarity . A confederation is a group of countries , a federation is a country . By definition the difference between a confederation and a federation is that the many memberships of the member states in a confederation are voluntary , while the membership in a federation is not .