How do I bend the knee when making animations?

I’ve tried a few ways to bend the knee, pulling the character down, moving the legs, moving the spine and things like that but I can’t find a way to bend the knee, how do I do it?