L reveals that he had tricked Light into writing into a fake notebook, thus exposing the latter as Kira. After Light confesses to L, the rest of the task force enter the warehouse only to see L die from a heart attack, courtesy of Mikami. Since only L heard the confession, Light convinces the task force members that L gave Light his real name and wrote it down in an act of self-defense. After L’s funeral, Near takes over L’s duties as head of the task force and focuses the investigation on the prosecutors that came into the task force headquarters the day L died.