Moving contact lines of more than two phases dictate a large number of interfacial phenomena. Despite its significance to fundamental and applied processes, the contact lines at a junction of four-phases (two immiscible liquids, solid and gas) have been addressed only in a few investigations. Here, we report an intriguing phenomenon that follows after the four phases of oil, water, solid and gas make contact through the coalescence of two different three-phase contact lines. We combine experimental study and theoretical analysis to reveal and rationalize the dynamics exhibited upon the coalescence between the contact line of a micron-sized oil droplet and the receding contact line of a millimetre-sized water drop that covers the oil droplet on the substrate. We find that after the coalescence a four-phase contact line is formed for a brief period. However, this quadruple contact line is not stable, leading to a `droplet splitting effect and eventual expulsion of the oil droplet from the water drop. We then show that the interfacial tension between the different phases and the viscosity of oil droplet dictate the splitting dynamics. More viscous oils display higher resistance to the extreme deformations of the droplet induced by the instability of the quadruple contact line and no droplet expulsion is observed for such cases.