A method for the preparation of ibrutinib's precursor, 3-(4-phenoxyphenyl)-1-((3R)-piperidin-3-il)-1H-pyrazolof [3,4-d]pyrimidin-4-amine, involving arylation of N-protected 1-(piperidin-3-yl)pyrazolo[3,4-d]pyrimidin-4-amine in the presence of palladium catalyst, nitrogen-containing ligand, and base, with subsequent removal of the protecting groups by known methods, is reported. (Formula (II))