A satellite galaxyorbits a larger galaxy due to gravitational attraction. Although a galaxy is made of a large number of objects (such as stars, planets, and nebulae) which are not connected to each other, it has a center of mass, which represents a weighted average (by mass) of the positions of each component object. This is similar to how an everyday object has a center of mass which is the weighted average of the positions of all its component atoms.
In a pair of orbiting galaxies, if one is considerably larger than the other, then the larger is the "primary" and the smaller is the satellite. If two orbiting galaxies are about the same size, then they are said to form a binary system.
Galaxies which encounter one another from certain directions may interact: collide, merge, rip each other apart, or transfer some member objects. In these situations, it can be difficult to tell where one galaxy ends and where another begins. "Collisions" between galaxies do not necessarily involve collisions between objects from one galaxy and objects from the other, since galaxies are mostly empty space. Rather, gravitational forces from nearby clouds of matter are capable of distorting one another, or bringing a clump of mass from one galaxy over into another.
Satellite galaxies of the Milky Way, our own galaxy.