Light Yagami ensures his anonymity by using the Death Note to control the timing and method of his victims' deaths, making it difficult for authorities to trace the killings back to him. Additionally, he adopts the persona of "Kira" and manipulates media coverage to portray himself as a righteous figure fighting against crime, which helps to divert suspicion away from his true identity.