Process for the preparation of olopatadine (I), which comprises reacting a compound of formula (V) in the presence of a palladium catalyst to provide a compound of formula (VI), wherein the acid protecting group is removed to provide the compound of formula (I) and if desired, transf