During the trip, John and I took turns driving.

Literal

Trip-during, John [and-と] I [topic-は] alternating [with-で] car [object-を] drove.

交替で (alternating / in turns) uses で to mark the manner. ジョンと私 joins two people with the conjunctive と. A natural description of shared driving.