The present invention relates to a method of manufacturing a porous polymer component 1 with structured and/or random pores 4 and/or channels 5. The method comprises arranging a dissolvable, sacrificial material 2 in a geometrical arrangement corresponding to an inner structure to be obtained in the polymer component 1. A component material 3, which is to form the final component 1, is arranged so that it surrounds at least a majority of the sacrificial material 2, and subsequently the sacrificial material 2 is dissolved and removed from the component material 3. The sacrificial material 2 and thereby the resulting inner structure of the component 1 is arranged in a controlled and reproducible manner. The sacrificial material 2 and possibly also the component material 3 may e.g. be arranged by use of a 3D-printer or manually. The method may e.g. be used to manufacture a three-dimensional scaffold for tissue engineering.