How to connect two sets of vertices with each other
This looks like CtrlE Edge Menu &gt; Bridge Edge Loops, 'Blend Surface', with one cut.

If this is not exactly what you're after, have a play with the other settings (e.g. 'Merge') to get the sense of them.