Draco Malfoy is a pureblood wizard who is taught to discriminate muggle-borns and blood-traitors by his parents, Lucius and Narcissa Malfoy. He bullied Hermione Granger by calling her a mudblood. He only bullied her because he loved Hermione. J.K Rowling said it herself Although he grew up in a well-off family, his attitude was very poor. His family is deeply invloved in the Dark Arts. He became a Death Eater for his father (his father was sent to Azkaban) after the battle in the Department of Mysteries. He is constantly guarded throughout his time in Hogwarts by "friends" Gregory Goyle and Vincent Crabbe and former Head of Slytherin Severus Snape. Draco dated Pansy Parkinson in his time at Hogwarts. He also loathed Harry and the rest of the Gryfindor.
In the fourth year Draco took Pansy to the yule ball. At the ball hermione was so beautiful that even he couldn't find an insult to throw at her. He supported viktor krum the in the triwizard tournament. At the end of the final challenge when Cedric died he wasn't sad at all.
In the sixth book Draco had agreed to kill Albus Dumbledore, but failed. Then Snape killed Dumbledore because he had agreed to an Unbreakable Vow stating that he is to protect Draco and complete the task if Draco should fail, but also because he promised Dumbledore he would when the time came. It is revealed in the final book that as Draco disarmed Dumbledore, he became the master of the Elder Wand. In the chapter Malfoy Manor, Harry disarmed Draco in a battle after escaping the basement of the house. This meant Voldemort could not use the Elder Wand against Harry. Voldemort was then killed by his own killing curse.
In the epilogue he is married to Astoria Greengrass, the sister of Daphne Greengrass, a Slytherin in Draco's year, and fathers a child, his son Scorpius Hyperion Malfoy. Draco and Harry didn't become friends in the end of the story but are civil as they nod at each other at the train station at the end of the 7th book Harry Potter and The Deathly Hallows.