Ginny Weasley received Tom Riddle’s diary from Lucius Malfoy, who discreetly slipped it into her second-hand books at Diagon Alley. Lucius Malfoy, intending to discredit Arthur Weasley and cause chaos at Hogwarts, believed the diary would help achieve both objectives, being unaware of its status as a Horcrux.