No comma: I go to school because it is fun. This comma is tricky. I think your sentence means that fun is the only reason you go to school.
Other times you will use the comma: "Walk your dog every day, because that's the best way to relax him." You don't mean that relaxation is the only reason you walk him.