The move follows an FDA inspection of a Ranbaxy facility which identified significant violations of sound manufacturing practices.
Under terms of the agreed deal, Ranbaxy shareholders will get 0.8 of a Sun Pharmaceutical share for each Ranbaxy share they own.
The recall is the latest in a series of problems to hit Ranbaxy, which has had all its India factories stopped from sending drugs and ingredients to the United States.