The present invention relates to a method of separating or extracting phosphorylated amino acids, peptides or proteins with a molecularly imprinted polymer and to the preparation of said molecularly imprinted polymer as well as the use of molecularly imprinted polymer for separating or extracting phosphorylated amino acids, peptides or proteins