How to erase a hard drive?

My computer has a virus. I want to wipe the hard drive clean to get rid of the virus. How can I do this without destroying all the files needed for the computer to operate? What do I need to back up and how do I back them up? I have a Dell Inspiron E1505 laptop computer. Thanks!
3 answers 3