Depends on the operating system.
If you are talking about OSX, it is already installed but if you want to reinstall it, just pop in the restore CD and follow the instructions.
If you are talking about Windows, then you need either Bootcamp if you want to dual boot, or something like Parallels or VMWare if you want to run windows inside of OSX.