Here's a breakdown:
* Tom Riddle (Lord Voldemort) opened the Chamber of Secrets and unleashed a giant basilisk.
* Ginny Weasley, possessed by the diary, wrote in it and was influenced by Tom Riddle's past self.
* The Basilisk was used by Riddle to petrify the muggle-born students, as he believed they were a threat to the wizarding world.
Let me know if you have any other questions about Harry Potter!