The invention relates to a process for the preparation of a high-molecular polyamide by adding a bislactam and a bisoxazoline or bisoxazine to the melt of a polyamide of a lower molecular weight. An increased and very stable melt viscosity is obtained. The invention also covers a polyamide composition which comprises both bislactam and bisoxazoline or bisoxazine.