During mating between two dogs, the male's penis swells, and the female's vaginal muscles contract, locking them together for several minutes.