The present invention relates to a CDK9 inhibitor, especially a selective CDK9 inhibitor, for use in treating, ameliorating and/or preventing midline carcinoma. Also corresponding methods for treating, preventing or ameliorating midline carcinoma are subject of the present invention. Preferably, NUT midline carcinoma is treated with the CDK9 inhibitors in accordance with the present invention.