Breeding happens when two Pokémon that are compatible are left in the DayCare. They will produce an Egg if they are compatible.
Compatibility
The two Pokémon must be the same species or in the same egg group and must be different genders. There may be other unknown factors.