if the stain is deeply set or had gone unnoticed for quite some time, you can use a commercial product such as shout and soak the garment overnight.
If the stain is bad, you may need to pre-treat and wash a couple of times.