Broadly the definition of defamation (libel in writing, slander in speech) is saying anything about someone which is likely to 'lower them in the estimation of right-thinking people'.
There are various defences against such a charge. One - it's provably true. Two - it's a fair opinion and not...