This happens when ship are ready for scrapyard. This process when ship are crashing into the shore is known as beaching.
In this video we will see top 5 huge ships crashing into the shore.
Surely in civilized countries this process takes place in ports where huge gantry cranes are able to pick up these ships.