There is provided a process for preparing sorafenib or a salt thereof comprising the use of a compound of formula (A) wherein R' is selected from the group consisting of hydrogen, -C(O)OA, -C(O)CX3, -C(O)NH2, -C(O)-NHOH or There is also provided intermediate compounds of general formula (A), N-methyl-4-(4-ureidophenoxy)picolinamide, 4-(2-(methylcarbamoyl)pyridin-4-yloxy)phenylcarbamate derivative and N-methyl-4-(4-(2,2,2-trihaloacetamido)phenoxy)picolinamide, processes for their preparation and their use in the preparation of sorafenib.