The trials of Mel Gibson, whose rants to an ex-girlfriend were caught on tape last year, seem like a curious case of life imitating art in this blackly humorous tale of a middle-aged man's emotional breakdown.

Hopefully, any lingering controversy won't overshadow Jodie Foster's third film behind the camera, which is her most assured effort to date.

Based on a script by Kyle Killen, The Beaver sensitively deals with themes of mental illness, suicide and self-belief.

Foster treads carefully around the thorny subject matter, tempering occasional sentimentality with spiky humour and tearful recriminations.

Her ensemble cast rises to the challenge magnificently, anchored by a mesmerising performance from Gibson who performs almost the entire film with a glove puppet on his hand, alternating between his character's softly spoken voice and the guttural Cockney growl of the stuffed animal.

Businessman Walter Black (Gibson) presides over a toy company that desperately needs one innovative product to revive its ailing fortunes.

While the VP (Cherry Jones) holds the business together, Walter self-implodes with depression, making life unbearable for his wife Meredith (Jodie Foster), teenage son Porter (Anton Yelchin) and youngest boy Henry (Riley Thomas Stewart).

Eventually, Meredith is forced to kick out her husband, hoping he will get professional help.

Following a failed suicide attempt, Walter returns to the homestead with a beaver glove puppet, through which he addresses the family as part of a bizarre form of therapy. Porter is furious.

Meanwhile at school, Porter tries to impress the smartest girl in his class, Norah (Jennifer Lawrence).

The Beaver sounds ridiculous yet on the screen, Foster, Gibson and co make this dysfunctional family snapshot work surprisingly well.

Killen's script glitters with some lovely turns of phrase (“Walter's depression is an ink that stains everything it touches”) and we come to invest almost as much emotion in the Beaver as Walter.

A tasteful sex scene, complete with the puppet in attendance, ends with the hilarious image of the Beaver gasping for breath in time with Gibson.

Yelchin and Oscar nominee Lawrence are an attractive pairing and bring out the grief and self-loathing that propels their teenagers on the path to redemption.

STAR RATING: ***