Complex sentence: Part of it is the border with Portugal, ends in the Atlantic Ocean.
Split into simpler sentences: Part of it is the border with Portugal. It ends in the Atlantic Ocean.