A composition for preventing and treating osteoporosis is provided The composition comprises the acetate salts of calcium, magnesium and zinc as well as vitamin D3 The acetate salts could be extracted from natural sources such as pearls, corals, and oysters or compounded by using synthetic materials The weight ratio of calcium to magnesium is 0.5: l to 4: 1.