The evolution of eusociality

If there is a gene that makes you eusocial, making you raise the offspring of other individuals, how does it spread? How can your eusocial gene end up…