The invention relates to a method of preparing a composite or porous composite used as a biodegradable scaffold, the composite prepared therefrom and the use of the composite. In particular, the composite is a calcium sulfate-polylactic acid composite or porous composite and the composite can be especially used as an in situ pore forming scaffold.