Rear Car Noise

Car makes a rattling/knocking noise coming from the rear…happens after car has been on road for a few minutes and only stops when breaks are applied…anyone have any ideas what this might be?

Thanks

Does the car have rear disc brakes? If so, there should be anti-rattle clips either attached to the pads or caliper. One or more of these is probably broken or missing.