Compost is very good for the soil. It contains the 3 major nutrients, nitrogen, phosphorous and potassium as well as many of the micro nutrients such as calcium and iron. It is also abundant in organic matter which does many beneficial things – it loosens clay soils so plants can breathe better, and it can bind sandy soil that typically doesn't hold moisture.