Which behavior is both territorial used for courtship

One example of behavior that is both territorial and used for courtship is a bird singing to defend its territory while also attracting a mate.