Loose joints are a common cause of a squeaky bed. Check all the bolts on your bed frame to see if they might be the source of your problem. If you find that any bolts are loose, use a wrench to tighten them. If you cannot manage to tighten a bolt securely, add a washer between the frame and the bolt to ensure a snug (and noise-free) fit.
Related: 30 Things Every Homeowner Should Know How to Do