Kidney stones can be extremely painful, and there is a rather large risk that they reoccur at a later time. What you eat means a lot and your diet is therefore an important key to prevention. It is important to get plenty of magnesiumand vitamin B6, whereas you should try to avoid oxalate-rich food sources like spinach, nuts, root vegetables, food with high soy content, rhubarb, berries, and dark chocolate. All of these items contain a lot of oxalate that may contribute to the formation of kidney stones. If you take magnesium in supplement form, make sure to choose a source that the body can absorb properly. Also, drink plenty of water, according to an article in the Norwegian health magazine Vitenskap og Fornuft.