The present invention relates to a multilayered solid oral pharmaceutical formulation of trimetazidine or a pharmaceutically acceptable salt or polymorph of trimetazidine wherein one layer of said formulation provides controlled release, while the other layer provides immediate release.