What is Kubernetes StateFulSet?

I try to understand what is a Statefulset but I can not understand this. I know just it is like a ReplicaSet and copies from the Container will created. I have understood even it is appropriate for databases but the rest i could not understand. Can anybody explain that, maybe with a example or a use case ?
Thanks for your helps.

Source: StackOverflow