Is weightlifting or cardio better for weight loss?

Is weightlifting or cardio better for weight loss?