In addition to the information of about concrete setting already posted quite a bit of that sort of thing is made from steel. Water doesn’t interfere with bolts clamping and welding underwater is commonly done.
For shallower waters things are often constructed on land then lowered into the water where they sit on or are driven into the ground under the water.
Latest Answers