An intervening dependent clause comes in the middle of a main clause. In The ferry, which leaves at dawn, carries bicycles, the relative clause comes between the subject the ferry and the verb carries.

How to recognize it
Find the main-clause subject and verb, then look for a dependent clause inserted between them. Decide whether it identifies the subject or adds extra information.
Examples explained
Commas for extra information
Use a pair of commas when the clause supplies a supplementary detail about something readers can already identify. In the ferry example, the clause gives the departure time. The main clause still reads The ferry carries bicycles if you remove that detail.
When the clause identifies the subject
In The ferry that leaves at dawn carries bicycles, the departure time tells readers which ferry carries bicycles. That identifying clause stays next to ferry without commas. The two clauses appear in the same position, so decide on punctuation by checking what the clause does. See relative clauses for more examples.
Common mix-up
A middle position does not automatically require commas. Identifying information normally stays unpunctuated; supplementary information takes a pair of commas.
Quick check
In “My bike, which has a red bell, is outside,” why are there two commas?
Reveal the answer and explanation
The clause which has a red bell supplies extra information. The commas mark both ends of that interruption.