In the case of the San Francisco-Oakland BART tunnel, it was constructed on shore in pieces and then floated out to their respective locations on the bay and “sunk” into place on top of a pre-dug trench. Each section is then connected together to form an airtight chamber.