Create a curve at the intersection of two or more surfaces or faces. The selections must intersect.

In the Feature toolbar:

Intersection curve icon in toolbar