Boat dock, Pier Post or Bridge support with steel cable tie for support.
Your first image is an eye-bolt and screw-pin chain (aka "anchor") shackle. Hex nut on the bolt and the style of the shackle (modern) indicate 1900's to present.
View attachment 1153252