The molly (Poecilia sphenops) is a popular fish for the beginning aquarist. They're attractive and hardy and, given enough space, can get along with others. Mollies belong to a class of fish called livebearers. They don't lay eggs; their young come out swimming. And they are prolific breeders as well. Molly babies get no protection from their parents. The tiny fish are just as likely to be eaten by their own mother as they are by other fish in the aquarium, so to survive they're going to need a little help.
Gather the babies. The best-case scenario would be to have the pregnant female in a breeding box or net suspended in the water of the aquarium. In the case of a breeding box, the babies would drop into another compartment of the box and the mother would already be separated. In the case of a breeding net, you would have to scoop the mother out. If you can't get to the gravid female in time, you may need to capture the little ones and separate them from the other fish in the aquarium. Then you can use the breeding box, net or the separate tank to isolate the fry until they get large enough to fend for themselves.
If chasing tiny mollies around the aquarium doesn't do it for you (it also stresses them out), or if you just want to give the babies a little more protection, add real or artificial plants to the tank. Plants with leaves that float to the top of the tank will give the little ones a place to hide as they feed. Breeding grass also works for this purpose.
Feed your fish. Baby mollies can eat your regular fish flakes, crushed finely. Live baby brine shrimp are also a popular baby food. Do not overfeed them. In about eight weeks your baby mollies should be large enough to go into the tank with the other fish.