Rev 20:13-14 state that the unbelieving dead will be judged according to their deeds (works).
One book is the book of works which contains a record of their deeds as a witness of the true nature of their spiritual condition.