If you maintained contact with her throughout the time your mother was caring for her, and could prove that you were capable of raising the child by yourself, then you should have no problem getting her back. However, your mother also has good grounds to fight you for your daughter, as she has been her sole caregiver. Sometimes birth parents do lose custody in these cases, so I'd try and sort it would with my mother if I were you. Sit down with her and discuss why she is unprepared to give you your daughter back; if she genuinely feels that you're not ready to look after her full-time then don't fly off the handle, instead consider her argument, because maybe she's right, but if she just wants to keep her because she's grown attached to her then explain that she'll still be a huge part of your daughter's life, but as her grandmother not as her mother. It may be best for you to have partial custody at first, as that way you'll learn to cope with a young child, and your mother won't feel so neglected. I hope you find a solution that's best for all three of you!