the short answer
Training to failure is taking a set to the point where you cannot complete another full rep with good form - the muscle fails mid-rep. It is the highest-effort way to train a set, but the evidence says you rarely need it: training close to failure, with about 1 to 3 reps in reserve, drives most of the muscle growth.
This article is general training education for coaches and lifters, not medical advice - if you are new to lifting or returning from injury, work within your ability and consult a qualified professional before pushing to high effort.