Frogs—predators and prey.
Frogs eat insects, snails, spiders and other prey to eat. They are also prey.
The most vulnerable part of the frog lifecycle is as spawn and tadpoles. Ducks love to eat frog eggs. You need to provide hiding places where the frogs in your garden can safely spawn (it is a numbers game tho, lay 1000 eggs, hope 2-3 make it to froghood!) Hiding places like under floating leaves (waterlilies are good) or among reeds or in a crevice in rocks—you need to provide some spots!
Tadpoles are attacked by fish, even tiny ones, wading birds and longnecked tortoises etc. As I said, it is a numbers game. Spiders and waterbugs prey on tadpoles, butcher birds sit on semi-submerged logs (or whatever) and pick off tadpoles. Also dragonfly larvae (but I never saw dragonflies above my pond and their numbers have crashed.)
As with many other critters, overcrowding or insufficient food sees tadpoles become cannibalistic! Their food is algae, decaying vegetable matter and micro organisms—any established pond should have enough to feed tadpoles. If not or you want to be sure.
Well washed then boiled lettuce—the green parts only. Use the outer leaves of a lettuce. Boil the lettuce in a pan of water, not in a microwave, for 20 minutes. We want enough food, not so much it causes pollution nor insufficient that munching on the tails of other tadpoles starts! Less is more here.
As the tadpoles metamorphose, losing their tails and developing legs they are also developing lungs and losing gills. At this stage a shallow ramp to allow the near-frogs to exit the water and use their new lungs is needed else they will drown. This is essential if you have your tadpoles in a glass tank or bucket etc while if they are in your fish pond you should already have some ramps/shallow areas (to allow butterflies to drink as well as for near–frogs, etc.