How exactly do you go about it, out of curiosity?

I mean, I've had it in mind to create a website for just about anything, really, like discussions about random things, a spam section, roleplaying, etc., but never really knew how to do it.