If someone maliciously damages my reputation and speaks ill of me, which directly affects my reputation, can it be solved by legal means?

His behavior belongs to fabricating facts and spreading false information, which belongs to libel. But in criminal law, it is a case of private prosecution, that is, you must go to the court to prosecute yourself, the court will accept it, and the public security organ will not interfere. I suggest you collect evidence and go directly to court to sue him. Let him compensate you for your mental loss, and the court will support it.