Complex sentence: It lacked a sea port and having one was seen as a matter of vital importance in Lithuania so it could control its own exports and imports and have access to the ocean.
Split into simpler sentences: It lacked a sea port and having one was seen as a matter of vital importance in Lithuania. This was so that the country could control its own exports and imports and have access to the ocean.